forked from pool/rsync
Accepting request 48561 from network
Copy from network/rsync based on submit request 48561 from user puzel OBS-URL: https://build.opensuse.org/request/show/48561 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsync?expand=0&rev=30
This commit is contained in:
parent
753be0ecbb
commit
c786039c0c
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Sep 19 10:55:59 UTC 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- rsyncd.rc changes:
|
||||||
|
* Do not use killproc -TERM, but just killproc, so that killproc
|
||||||
|
waits until the service is actually shut down, before attempting
|
||||||
|
to restart it (when "restart" is used). Fixes bnc#546977.
|
||||||
|
* Change the "reload" action to return "missing" because rsyncd
|
||||||
|
does not handle SIGHUP
|
||||||
|
* Adjust "force-reload" accordingly
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 4 14:21:21 UTC 2010 - puzel@novell.com
|
Mon Jan 4 14:21:21 UTC 2010 - puzel@novell.com
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Name: rsync
|
Name: rsync
|
||||||
Summary: Replacement for RCP/mirror that has Many More Features
|
Summary: Replacement for RCP/mirror that has Many More Features
|
||||||
Version: 3.0.7
|
Version: 3.0.7
|
||||||
Release: 1
|
Release: 6
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: Productivity/Networking/Other
|
Group: Productivity/Networking/Other
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
|
13
rsyncd.rc
13
rsyncd.rc
@ -76,7 +76,7 @@ case "$1" in
|
|||||||
## Stop daemon with killproc(8) and if this fails
|
## Stop daemon with killproc(8) and if this fails
|
||||||
## set echo the echo return value.
|
## set echo the echo return value.
|
||||||
|
|
||||||
killproc -p $RSYNCD_PID -TERM $RSYNCD_BIN
|
killproc -p $RSYNCD_PID $RSYNCD_BIN
|
||||||
|
|
||||||
# Remember status and be verbose
|
# Remember status and be verbose
|
||||||
rc_status -v
|
rc_status -v
|
||||||
@ -104,17 +104,14 @@ case "$1" in
|
|||||||
## do this on signal 1 (SIGHUP).
|
## do this on signal 1 (SIGHUP).
|
||||||
## If it does not support it, restart.
|
## If it does not support it, restart.
|
||||||
|
|
||||||
echo -n "Reload service rsync"
|
echo "Reload service rsync"
|
||||||
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
|
"$0" restart
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
## Like force-reload, but if daemon does not support
|
# rsyncd does not catch SIGHUP
|
||||||
## signalling, do nothing (!)
|
|
||||||
|
|
||||||
# If it supports signalling:
|
|
||||||
echo -n "Reload service rsync"
|
echo -n "Reload service rsync"
|
||||||
killproc -p $RSYNCD_PID -HUP $RSYNCD_BIN
|
rc_failed 3
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
|
Loading…
Reference in New Issue
Block a user