From 69f1e12d2f0e6b7cba0b4b841724592cf10b274a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Tue, 22 Jul 2003 12:21:10 +0000 Subject: [PATCH] - better way (backport from HEAD) Changed files: apache1.init -> 1.8 --- apache1.init | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apache1.init b/apache1.init index 1e006ae..929ffa3 100644 --- a/apache1.init +++ b/apache1.init @@ -63,21 +63,23 @@ case "$1" in RETVAL=$? /usr/sbin/httpd -S ;; - reload) + restart) + $0 stop + $0 start + exit $? + ;; + reload|force-reload) if [ -f /var/lock/subsys/httpd ]; then msg_reloading httpd - kill -HUP `pidof httpd` + killproc httpd -HUP + RETVAL=$? else - msg_not_running httpd + msg_not_running httpd >&2 + RETVAL=7 fi ;; - restart|force-reload) - $0 stop - $0 start - exit $? - ;; *) - msg_usage "$0 {start|stop|restart|force-reload|status}" + msg_usage "$0 {start|stop|restart|reload|force-reload|status}" exit 3 ;; esac -- 2.44.0