]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- add force-reload
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Apr 2010 14:17:21 +0000 (14:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-irc.init -> 1.15

eventum-irc.init

index d7e57025b4f28845835fe57be0ad2da9eec3e530..e9339d30781e8c1a4422e43853a4f16753f1db02 100644 (file)
@@ -61,6 +61,17 @@ stop() {
        fi
 }
 
+condrestart() {
+       if [ ! -f /var/lock/subsys/eventum-irc ]; then
+               msg_not_running "Eventum IRC Bot"
+               RETVAL=$1
+               return
+       fi
+
+       stop
+       start
+}
+
 RETVAL=0
 # See how we were called.
 case "$1" in
@@ -74,12 +85,15 @@ case "$1" in
        stop
        start
        ;;
+  force-reload)
+       condrestart 7
+       ;;
   status)
        status eventum-irc-bot php
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|status}"
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
        exit 3
 esac
 
This page took 0.096431 seconds and 4 git commands to generate.