Fixed www-logrotate.sh for Ubuntu.
This commit is contained in:
parent
308cb7b9da
commit
9691ca3977
1 changed files with 9 additions and 2 deletions
|
@ -37,8 +37,15 @@ else
|
||||||
LSOF=lsof
|
LSOF=lsof
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -r /var/run/httpd.pid ] && HTTPDPID=`cat /var/run/httpd.pid`
|
if [ -r /var/run/httpd.pid ]; then
|
||||||
[ -r /var/run/httpsd.pid ] && HTTPSDPID=`cat /var/run/httpsd.pid`
|
HTTPDPID=`cat /var/run/httpd.pid`
|
||||||
|
elif [ -r /var/run/apache2.pid ]; then
|
||||||
|
HTTPDPID=`cat /var/run/apache2.pid`
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -r /var/run/httpsd.pid ]; then
|
||||||
|
HTTPSDPID=`cat /var/run/httpsd.pid`
|
||||||
|
fi
|
||||||
|
|
||||||
signalapache() {
|
signalapache() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue