Author: glen                         Date: Fri Mar  7 08:35:59 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- tabs

---- Files affected:
SOURCES:
   rsync.init (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SOURCES/rsync.init
diff -u SOURCES/rsync.init:1.9 SOURCES/rsync.init:1.10
--- SOURCES/rsync.init:1.9      Thu Mar  6 18:51:06 2008
+++ SOURCES/rsync.init  Fri Mar  7 09:35:53 2008
@@ -27,10 +27,7 @@
 # Get service configuration
 [ -f /etc/sysconfig/rsyncd ] && . /etc/sysconfig/rsyncd
 
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
+start() {
        # Start daemons.
        if [ ! -f /var/lock/subsys/rsyncd ]; then
                msg_starting rsyncd
@@ -40,8 +37,9 @@
        else
                msg_already_running rsyncd
        fi
-       ;;
-  stop)
+}
+
+stop() {
        # Stop daemons.
        if [ -f /var/lock/subsys/rsyncd ]; then
                msg_stopping rsyncd
@@ -50,11 +48,20 @@
        else
                msg_not_running rsyncd
        fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+  start)
+       start
+       ;;
+  stop)
+       stop
        ;;
   restart|force-restart|force-reload)
-       $0 stop
-       $0 start
-       exit $?
+       stop
+       start
        ;;
   status)
        status rsyncd rsync
================================================================

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

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

Reply via email to