diff options
Diffstat (limited to 'extra/rsync/rsyncd')
-rw-r--r-- | extra/rsync/rsyncd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/extra/rsync/rsyncd b/extra/rsync/rsyncd index 573130fb3..d7a772e8e 100644 --- a/extra/rsync/rsyncd +++ b/extra/rsync/rsyncd @@ -3,10 +3,16 @@ . /etc/rc.conf . /etc/rc.d/functions +[ -f /etc/conf.d/rsyncd ] && . /etc/conf.d/rsyncd + +function call_rsyncd() { + /usr/bin/rsync --daemon $RSYNCD_ARGS +} + case "$1" in start) stat_busy "Starting rsyncd" - [ ! -f /var/run/daemons/rsyncd ] && /usr/bin/rsync --daemon + [ ! -f /var/run/daemons/rsyncd ] && call_rsyncd if [ $? -gt 0 ]; then stat_fail else |