| Summary: | different gentoo-rsync-mirror rsync init and system rsync init | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Martin Holzer (RETIRED) <mholzer> |
| Component: | New packages | Assignee: | Michael Imhof (RETIRED) <tantive> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Martin Holzer (RETIRED)
2003-02-27 17:14:09 UTC
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. |