diff options
Diffstat (limited to 'source/n/httpd/rc.httpd')
-rw-r--r-- | source/n/httpd/rc.httpd | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/n/httpd/rc.httpd b/source/n/httpd/rc.httpd index 064f6ea4..81189098 100644 --- a/source/n/httpd/rc.httpd +++ b/source/n/httpd/rc.httpd @@ -17,7 +17,16 @@ case "$1" in 'stop') /usr/sbin/apachectl -k stop killall httpd - rm -f /var/run/httpd/*.pid + # Remove both old and new .pid locations: + rm -f /var/run/httpd.pid /var/run/httpd/httpd.pid + ;; + 'force-restart') + # Because sometimes restarting through apachectl just doesn't do the trick... + /usr/sbin/apachectl -k stop + killall httpd + # Remove both old and new .pid locations: + rm -f /var/run/httpd.pid /var/run/httpd/httpd.pid + /usr/sbin/apachectl -k start ;; 'restart') /usr/sbin/apachectl -k restart |