diff options
author | root <root@rshg047.dnsready.net> | 2011-05-19 22:46:30 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-05-19 22:46:30 +0000 |
commit | e2fe79d62643f0e50b1c5e194a94cb510b371cc8 (patch) | |
tree | 9c8ecff1c65af070ae8c3b849f1ef8cbc8fea7ce /extra/rsync/rsyncd | |
parent | b8ea4461e461f0e1782e28b5810eb811423afa79 (diff) |
Thu May 19 22:46:30 UTC 2011
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 |