Author: glen                         Date: Tue Mar 25 23:39:20 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- forcibly change arekm habits, update this from template.init ;)

---- Files affected:
SOURCES:
   oidentd.init (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SOURCES/oidentd.init
diff -u SOURCES/oidentd.init:1.10 SOURCES/oidentd.init:1.11
--- SOURCES/oidentd.init:1.10   Thu Dec  8 02:02:49 2005
+++ SOURCES/oidentd.init        Wed Mar 26 00:39:15 2008
@@ -33,10 +33,7 @@
        exit 0
 fi
 
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
+start() {
        # Start daemons.
        if [ ! -f /var/lock/subsys/oidentd ]; then
                msg_starting oidentd
@@ -46,8 +43,9 @@
        else
                msg_already_running oidentd
        fi
-       ;;
-  stop)
+}
+
+stop() {
        # Stop daemons.
        if [ -f /var/lock/subsys/oidentd ]; then
                msg_stopping oidentd
@@ -56,20 +54,38 @@
        else
                msg_not_running oidentd
        fi
+}
+
+condrestart() {
+       if [ -f /var/lock/subsys/oidentd ]; then
+               stop
+               start
+       else
+               msg_not_running oidentd
+               RETVAL=$1
+       fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       start
        ;;
-  restart|force-reload)
-       $0 stop
-       $0 start
-       exit $?
+  stop)
+       stop
+       ;;
+  restart)
+       stop
+       start
+       ;;
+  force-reload)
+       condrestart 7
        ;;
   status)
        status oidentd
        exit $?
        ;;
-#  reload)
-#      msg_reloading oidentd
-#      killproc oidentd -HUP
-#      ;;
   *)
        msg_usage "$0 {start|stop|restart|force-reload|status}"
        exit 3
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/oidentd.init?r1=1.10&r2=1.11&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to