Skip to content

Commit

Permalink
Restart apache slightly less often (#301)
Browse files Browse the repository at this point in the history
Part of #293 was
supposed to drop restarts to hourly, but a rebase dropped that because
those lines were changed by Ilan to fix a bug I had introduced.

This drops us down to hourly. While we may run into issues, if we do
at least now we have logging, and at worst will be down for less than an
hour.

Signed-off-by: Phil Dibowitz <[email protected]>
  • Loading branch information
jaymzh authored Oct 12, 2023
1 parent bac2b08 commit 1967bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cookbooks/scale_apache/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
apache_debug_log = '/var/log/apache_status.log'
if node['hostname'] == 'scale-web2'
cron 'ugly restarts' do
minute '*/30'
# once an hour
minute '02'
command "date >> #{apache_debug_log}; " +
"ps auxwww | grep http >> #{apache_debug_log}; " +
'/usr/bin/systemctl restart httpd'
Expand Down

0 comments on commit 1967bc6

Please sign in to comment.