Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6172 - Rsync mirror setup HOWTO has Incomplete information
Summary: Rsync mirror setup HOWTO has Incomplete information
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: [OLD] Documentation (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Colin Morey (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-07 14:23 UTC by Aniruddha Shankar
Modified: 2003-07-09 11:53 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 Aniruddha Shankar 2002-08-07 14:23:47 UTC
http://www.gentoo.org/doc/mirroring.html does not mention information on how to _start_ the 
rsync server . This is further compounded by the fact that if you're starting rsync from the CLI, it 
doesnt start (or didnt start for me ) unless you pass it --config=/etc/rsyncd.conf . I'm assuming that 
that would also mean that if you were starting the rsyncd server from xinetd, your xinetd conf would 
have to include  server_args= --config=/etc/rsyncd.conf

The following /etc/xinetd.d/rsync is from c0ns0le-wk  (Brandon Grace)  at   
http://c0ns0le.micr0s0ftsux.com/~bgrace/devel/gentoo/xinetd_conf.html ... many thanks for all the 
help :) ... 

/etc/xinetd.d/rsync

# description: The rsync server is a good addition to am ftp server,
# as it allows crc checksumming etc.
# service rsync
        # you will need to create the /etc/rsyncd.conf file as gentoo does
        # not redily do this for you ...
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/bin/rsync
        server_args     = --daemon --config=/etc/rsyncd.conf
        log_on_failure  += USERID
}
Comment 1 Todd Heim (RETIRED) gentoo-dev 2002-10-17 14:05:47 UTC
And for those that would prefer a init.d script, one follows.
(I see your using --config=/etc/rsyncd.conf; maybe that should be added below 
also?)

#!/sbin/runscript

start() {
        ebegin "Starting rsyncd"
        start-stop-daemon --start --quiet --exec /usr/bin/rsync -- --daemon
        eend $?
}

stop() {
        ebegin "Stopping rsyncd"
        start-stop-daemon --stop --quiet --exec /usr/bin/rsync
        eend $?
}

Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-07-09 11:53:09 UTC
closing