Skip to content

Commit

Permalink
Alter check for Apache2 in vhost logrotation to prevent warnings (#41)
Browse files Browse the repository at this point in the history
on servers that do not have Apache2 installed.
  • Loading branch information
syphernl committed Feb 19, 2018
1 parent 541691e commit e44bc60
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions vhosting/templates/logrotate.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
dateext
sharedscripts
postrotate
if /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
fi;
[ -d /etc/apache2 ] && apache2ctl graceful > /dev/null 2>&1
[ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
endscript
prerotate
Expand Down

0 comments on commit e44bc60

Please sign in to comment.