From 447e9cab7dcf373b5a45b6bff52da4240133d2ee Mon Sep 17 00:00:00 2001 From: Thomas Lotterer Date: Tue, 29 Jul 2003 14:21:02 +0000 Subject: [PATCH] allow daemon disable but still get env --- rsync/rc.rsync | 5 +++++ rsync/rsync.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rsync/rc.rsync b/rsync/rc.rsync index 478ba4aa9e..6c9f5c4c94 100644 --- a/rsync/rc.rsync +++ b/rsync/rc.rsync @@ -5,6 +5,7 @@ %config rsync_enable="$openpkg_rc_def" + rsync_daemon="yes" rsync_flags="" rsync_bind="127.0.0.1" rsync_port="873" @@ -35,6 +36,7 @@ %start -u @l_susr@ rcService rsync enable yes || exit 0 rcService rsync active yes && exit 0 + rcService rsync daemon yes || exit 0 flags="$rsync_flags" echo $flags | grep -- --address >/dev/null if [ $? -ne 0 -a ".$rsync_bind" != . ]; then @@ -51,16 +53,19 @@ %stop -u @l_susr@ rcService rsync enable yes || exit 0 rcService rsync active no && exit 0 + rcService rsync daemon yes || exit 0 rsync_signal TERM sleep 2 %restart -u @l_susr@ rcService rsync enable yes || exit 0 rcService rsync active no && exit 0 + rcService rsync daemon yes || exit 0 rc rsync stop start %daily -u @l_susr@ rcService rsync enable yes || exit 0 + rcService rsync daemon yes || exit 0 # rotate logfile shtool rotate -f \ diff --git a/rsync/rsync.spec b/rsync/rsync.spec index 5efa76d223..3ff8c60ae0 100644 --- a/rsync/rsync.spec +++ b/rsync/rsync.spec @@ -33,7 +33,7 @@ Distribution: OpenPKG [CORE] Group: Filesystem License: GPL Version: 2.5.6 -Release: 20030722 +Release: 20030729 # list of sources Source0: http://rsync.samba.org/ftp/rsync/rsync-%{version}.tar.gz