summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-02-23 11:33:59 +0000
committerRoy Marples <uberlord@gentoo.org>2007-02-23 11:33:59 +0000
commit67c559e1611d1785f79d20d644bfd534e74772ad (patch)
tree9ce72e8e6c8ad35c2f87acaaa0034926bd4f414f /net-misc
parentwxmaxima initial import. (diff)
downloadgentoo-2-67c559e1611d1785f79d20d644bfd534e74772ad.tar.gz
gentoo-2-67c559e1611d1785f79d20d644bfd534e74772ad.tar.bz2
gentoo-2-67c559e1611d1785f79d20d644bfd534e74772ad.zip
Use start-stop-daemon correctly.
(Portage version: 2.1.2-r10)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rsync/ChangeLog5
-rw-r--r--net-misc/rsync/files/rsyncd.init.d9
2 files changed, 10 insertions, 4 deletions
diff --git a/net-misc/rsync/ChangeLog b/net-misc/rsync/ChangeLog
index f8cb77a5c43b..babda00f66e4 100644
--- a/net-misc/rsync/ChangeLog
+++ b/net-misc/rsync/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/rsync
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/ChangeLog,v 1.113 2007/02/03 21:35:15 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/ChangeLog,v 1.114 2007/02/23 11:33:59 uberlord Exp $
+
+ 23 Feb 2007; Roy Marples <uberlord@gentoo.org> files/rsyncd.init.d:
+ Use start-stop-daemon correctly.
*rsync-2.6.9-r2 (03 Feb 2007)
diff --git a/net-misc/rsync/files/rsyncd.init.d b/net-misc/rsync/files/rsyncd.init.d
index 7455dae11ef5..1b20282296a5 100644
--- a/net-misc/rsync/files/rsyncd.init.d
+++ b/net-misc/rsync/files/rsyncd.init.d
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.4 2004/10/21 01:10:48 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/files/rsyncd.init.d,v 1.5 2007/02/23 11:33:59 uberlord Exp $
depend() {
use net
@@ -9,12 +9,15 @@ depend() {
start() {
ebegin "Starting rsyncd"
- rsync --daemon ${RSYNC_OPTS}
+ start-stop-daemon --start --exec /usr/bin/rsync \
+ --pidfile /var/run/rsyncd.pid \
+ -- --daemon ${RSYNC_OPTS}
eend $?
}
stop() {
ebegin "Stopping rsyncd"
- start-stop-daemon --stop --pidfile /var/run/rsyncd.pid
+ start-stop-daemon --stop --exec /usr/bin/rsync \
+ --pidfile /var/run/rsyncd.pid
eend $?
}