]> git.pld-linux.org Git - packages/apache.git/commitdiff
- separated force-reload (HUP) from graceful reload (USR1)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 10 Jan 2006 19:36:08 +0000 (19:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache.init -> 1.53

apache.init

index 67d9bc9859b2444f9e99a012a5160f2d5a7a107f..e067c46e34cb07d8bbadb17e308f2cd38b9dd56b 100644 (file)
@@ -86,6 +86,22 @@ case "$1" in
                RETVAL=7
        fi
        ;;
+  force-reload)
+       if [ -f /var/lock/subsys/httpd ]; then
+               run_cmd "Checking httpd.${HTTPD_MPM} configuration" httpd.${HTTPD_MPM} $CFG -t
+               RETVAL=$?
+               if [ $RETVAL -eq 0 ]; then
+                       msg_reloading httpd.${HTTPD_MPM}
+                       # forced reload
+                       daemon httpd.${HTTPD_MPM} $CFG -k restart
+                       RETVAL=$?
+               fi
+       else
+               msg_not_running httpd.${HTTPD_MPM} >&2
+               RETVAL=7
+       fi
+       ;;
+
   *)
        msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|status}"
        exit 3
This page took 0.028794 seconds and 4 git commands to generate.