Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16505 - different gentoo-rsync-mirror rsync init and system rsync init
Summary: different gentoo-rsync-mirror rsync init and system rsync init
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 17:14 UTC by Martin Holzer (RETIRED)
Modified: 2003-03-19 15:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzer (RETIRED) gentoo-dev 2003-02-27 17:14:09 UTC
rsync init from system works with
rsync --daemon

the rsync init in gentoo-rsync-mirror with start-stop-daemon
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-02-27 17:14:37 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 $?
}
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-02-27 17:15:11 UTC
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 Michael Imhof (RETIRED) gentoo-dev 2003-02-28 06:51:39 UTC
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 Michael Imhof (RETIRED) gentoo-dev 2003-03-19 13:43:33 UTC
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 Martin Holzer (RETIRED) gentoo-dev 2003-03-19 15:39:36 UTC
works great

now the init script diff is only the parameter line

could be masked as stable i think
Comment 6 Michael Imhof (RETIRED) gentoo-dev 2003-03-19 15:51:16 UTC
Ok, unmasked it and cleaned out old ebuilds.
Closing this bug now, thanks for your help.