Skip to content

Commit

Permalink
Merge pull request #297 from calcium-machine/develop-catapult
Browse files Browse the repository at this point in the history
Fallback to native apachectl if systemd fails a reload.
  • Loading branch information
seth-reeser committed Sep 22, 2015
2 parents cbeb028 + afa1edc commit 65ee81b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 1.10.1
version: 1.10.2
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ if ["status"].include?(ARGV[0])
puts "\n[cert signature algorithm]"
puts " * https://www.openssl.org/docs/apps/ciphers.html"
puts "\nAvailable websites:".color(Colors::WHITE)
puts "".ljust(42) + "[software]".ljust(14) + "[alexa rank, 3m delta]".ljust(24) + "[dev.]".ljust(22) + "[test.]".ljust(22) + "[qc.]".ljust(22) + "[production / cert expiry, signature algorithm, common name]".ljust(80)
puts "".ljust(42) + "[software]".ljust(14) + "[alexa rank, 3m delta]".ljust(24) + "[dev.]".ljust(21) + "[test.]".ljust(21) + "[qc.]".ljust(21) + "[production / cert expiry, signature algorithm, common name]"

configuration["websites"].each do |service,data|
if configuration["websites"]["#{service}"] == nil
Expand Down
6 changes: 6 additions & 0 deletions provisioners/redhat/apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,12 @@ echo -e "\n==> completed in ($(($end - $start)) seconds)"
echo -e "\n\n\n==> Restarting Apache"
start=$(date +%s)
sudo systemctl reload httpd.service
if [ $? -eq 0 ]; then
echo "'sudo systemctl reload httpd.service' was successful"
else
echo "'sudo systemctl reload httpd.service' was unsuccessful, trying 'sudo apachectl -k graceful'"
sudo apachectl -k graceful
fi
sudo systemctl status httpd.service
end=$(date +%s)
echo -e "\n==> completed in ($(($end - $start)) seconds)"
Expand Down

0 comments on commit 65ee81b

Please sign in to comment.