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
Description:   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

------- Comment #1 From Martin Holzer (RETIRED) 2003-02-27 17:14:37 0000 -------
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 $?
}

------- Comment #2 From Martin Holzer (RETIRED) 2003-02-27 17:15:11 0000 -------
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"

------- Comment #3 From Michael Imhof 2003-02-28 06:51:39 0000 -------
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

------- Comment #4 From Michael Imhof 2003-03-19 13:43:33 0000 -------
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.

------- Comment #5 From Martin Holzer (RETIRED) 2003-03-19 15:39:36 0000 -------
works great

now the init script diff is only the parameter line

could be masked as stable i think

------- Comment #6 From Michael Imhof 2003-03-19 15:51:16 0000 -------
Ok, unmasked it and cleaned out old ebuilds.
Closing this bug now, thanks for your help.