]> git.pld-linux.org Git - packages/rsync.git/commitdiff
- tabs
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 7 Mar 2008 08:35:53 +0000 (08:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rsync.init -> 1.10

rsync.init

index f001708c1a0017fd32fc9293535a9eaa67b62e27..53e2a676a3d6467e17f0b5266fe231f729f66292 100644 (file)
@@ -27,10 +27,7 @@ fi
 # 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 @@ case "$1" in
        else
                msg_already_running rsyncd
        fi
-       ;;
-  stop)
+}
+
+stop() {
        # Stop daemons.
        if [ -f /var/lock/subsys/rsyncd ]; then
                msg_stopping rsyncd
@@ -50,11 +48,20 @@ case "$1" in
        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
This page took 0.101025 seconds and 4 git commands to generate.