Bug 16505 - different gentoo-rsync-mirror rsync init and system rsync init
|
Bug#:
16505
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: tantive@gentoo.org
|
Reported By: mholzer@gentoo.org
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: different gentoo-rsync-mirror rsync init and system rsync init
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-02-27 17:14 0000
|
rsync init from system works with
rsync --daemon
the rsync init in gentoo-rsync-mirror with start-stop-daemon
net-misc/rsync init
depend() {
use net
}
start() {
ebegin "Starting rsyncd"
rsync --daemon ${RSYNC_OPTS}
eend $?
}
stop() {
ebegin "Stopping rsyncd"
kill `cat /var/run/rsyncd.pid`
eend $?
}
gentoo-rsync-mirror init
depend() {
need net
}
# FYI: --sparce seems to cause problems.
RSYNCOPTS="--daemon --safe-links --compress --bwlimit=700 --timeout=1800"
start() {
ebegin "Starting rsync daemon"
start-stop-daemon --start --quiet --pidfile /var/run/rsyncd.pid --exec /
usr/bin/rsync -- ${RSYNCOPTS}
eend $?
}
stop() {
ebegin "Stopping rsync daemon"
sorry, i only used the scripts provided in the official gentoo linux rsync
mirrors policy at http://www.gentoo.org/doc/en/rsync.xml
so i think the policy needs an update...
but i'll change the scripts anyway
Ok, i just committed gentoo-rsync-mirror-1.0-r2.ebuild with an updated version
of rsyncd.init.
Please check/test and report if it's stable enough for unmasking.
works great
now the init script diff is only the parameter line
could be masked as stable i think
Ok, unmasked it and cleaned out old ebuilds.
Closing this bug now, thanks for your help.