SHA256
1
0
forked from pool/rsync
OBS User unknown
2007-09-14 14:27:39 +00:00
committed by Git OBS Bridge
parent 62b668bf80
commit d808295955
4 changed files with 29 additions and 9 deletions

View File

@@ -25,6 +25,7 @@
RSYNCD_BIN=/usr/sbin/rsyncd
test -x $RSYNCD_BIN || exit 5
RSYNCD_PID=/var/run/rsyncd.pid
# Shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
@@ -63,7 +64,7 @@ case "$1" in
# NOTE: startproc return 0, even if service is
# already running to match LSB spec.
startproc -t 1 $RSYNCD_BIN --daemon
startproc -p $RSYNCD_PID -t 1 $RSYNCD_BIN --daemon
# Remember status and be verbose
rc_status -v
@@ -73,7 +74,7 @@ case "$1" in
## Stop daemon with killproc(8) and if this fails
## set echo the echo return value.
killproc -TERM $RSYNCD_BIN
killproc -p $RSYNCD_PID -TERM $RSYNCD_BIN
# Remember status and be verbose
rc_status -v
@@ -102,7 +103,7 @@ case "$1" in
## If it does not support it, restart.
echo -n "Reload service rsync"
killproc -HUP $RSYNCD_BIN
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
rc_status -v
;;
reload)
@@ -111,7 +112,7 @@ case "$1" in
# If it supports signalling:
echo -n "Reload service rsync"
killproc -HUP $RSYNCD_BIN
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
rc_status -v
;;
status)
@@ -126,7 +127,7 @@ case "$1" in
# 3 - service not running
# NOTE: checkproc returns LSB compliant status values.
checkproc $RSYNCD_BIN
checkproc -p $RSYNCD_PID $RSYNCD_BIN
rc_status -v
;;
*)