diff options
Diffstat (limited to 'extra/rsync/rsyncd')
-rw-r--r-- | extra/rsync/rsyncd | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/extra/rsync/rsyncd b/extra/rsync/rsyncd index d7a772e8e..27836d5c4 100644 --- a/extra/rsync/rsyncd +++ b/extra/rsync/rsyncd @@ -5,26 +5,20 @@ [ -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 ] && call_rsyncd + [ ! -f /run/daemons/rsyncd ] && /usr/bin/rsync --daemon $RSYNCD_ARGS if [ $? -gt 0 ]; then stat_fail else - #pgrep -of "/usr/bin/rsync --daemon" > /var/run/rsyncd.pid # Removed FS#20942 add_daemon rsyncd stat_done fi ;; - stop) stat_busy "Stopping rsyncd" - [ -f /var/run/rsyncd.pid ] && kill `cat /var/run/rsyncd.pid` + [ -f /run/rsyncd.pid ] && kill `cat /run/rsyncd.pid` if [ $? -gt 0 ]; then stat_fail else |