]> git.pld-linux.org Git - packages/rsync.git/commitdiff
- Allow to pass options to rsync daemon (only inet - how to pass it in inet
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 9 May 2004 19:39:08 +0000 (19:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  version from sysconfig file?); reload and force-restart added to options

Changed files:
    rsync.init -> 1.7
    rsync.sysconfig -> 1.2

rsync.init
rsync.sysconfig

index c1973d71026103746ef05b5fbdc9342dfe2e274e..b9584fff3ca299938cd4cb43e6561ede4dcf8f8d 100644 (file)
@@ -24,7 +24,8 @@ else
        exit 0
 fi
 
-. /etc/sysconfig/rsyncd
+# Get service configuration
+[ -f /etc/sysconfig/rsyncd ] && . /etc/sysconfig/rsyncd
 
 RETVAL=0
 # See how we were called.
@@ -33,7 +34,7 @@ case "$1" in
        # Start daemons.
        if [ ! -f /var/lock/subsys/rsyncd ]; then
                msg_starting rsyncd
-               daemon rsync --daemon
+               daemon rsync --daemon ${RSYNC_OPTIONS}
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rsyncd
        else
@@ -50,7 +51,7 @@ case "$1" in
                msg_not_running rsyncd
        fi
        ;;
-  restart|force-reload)
+  restart|reload|force-restart|force-reload)
        $0 stop
        $0 start
        exit $?
@@ -60,7 +61,7 @@ case "$1" in
        exit $?
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|force-reload|status}"
+       msg_usage "$0 {start|stop|restart|reload|force-restart|force-reload|status}"
        exit 3
 esac
 
index 70ae0bae2191a9e9a6838ce1026e4ba6ed3554f8..bfec95ea9b83b4873ba1fba507b4dd78cf7aab6f 100644 (file)
@@ -3,3 +3,6 @@
 # Try to define nice-level for running rsyncd
 SERVICE_RUN_NICE_LEVEL="+5"
 
+# Additional options to rsyncd
+# see: man rsync
+#RSYNC_OPTIONS=""
This page took 0.071817 seconds and 4 git commands to generate.