]> git.pld-linux.org Git - packages/rsync.git/commitdiff
- LSB conformance
authorankry <ankry@pld-linux.org>
Sun, 25 May 2003 15:00:04 +0000 (15:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rsync.init -> 1.4

rsync.init

index d819e73b870a3bfbf1a93c44d18cd9b6167ffd8c..77c0379a8d9005b7ad5a9d510c72518527ad1a61 100644 (file)
@@ -26,6 +26,7 @@ fi
 
 . /etc/sysconfig/rsyncd
 
+RETVAL=0
 # See how we were called.
 case "$1" in
   start)
@@ -37,7 +38,6 @@ case "$1" in
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rsyncd
        else
                msg_already_running rsyncd
-               exit 1
        fi
        ;;
   stop)
@@ -48,17 +48,20 @@ case "$1" in
                rm -f /var/lock/subsys/rsyncd >/dev/null 2>&1
        else
                msg_not_running rsyncd
-               exit 1
        fi
        ;;
-  restart|reload)
+  restart|force-reload)
        $0 stop
        $0 start
+       exit $?
        ;;
   status)
        status rsync
+       exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|reload|status}"
-       exit 1
+       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       exit 3
 esac
+
+exit $RETVAL
This page took 0.141276 seconds and 4 git commands to generate.