From 897dc8cb4e1894c1674025732962e068f8630ef5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 26 Feb 2004 23:15:34 +0000 Subject: [PATCH] - graceful reload support Changed files: apache.init -> 1.21 apache1.init -> 1.9 --- apache.init | 1 + apache1.init | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apache.init b/apache.init index 8c5df99..6c87bf4 100644 --- a/apache.init +++ b/apache.init @@ -86,6 +86,7 @@ case "$1" in msg_not_running httpd >&2 RETVAL=7 fi + ;; *) msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|status}" exit 3 diff --git a/apache1.init b/apache1.init index 929ffa3..9e6a87c 100644 --- a/apache1.init +++ b/apache1.init @@ -78,8 +78,18 @@ case "$1" in RETVAL=7 fi ;; + graceful) + if [ -f /var/lock/subsys/httpd ]; then + msg_reloading httpd + killproc httpd -USR1 + RETVAL=$? + else + msg_not_running httpd >&2 + RETVAL=7 + fi + ;; *) - msg_usage "$0 {start|stop|restart|reload|force-reload|status}" + msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|status}" exit 3 ;; esac -- 2.44.0