Starting the Rsync Daemon (rsyncd) on boot
clintin at linuxmail.org
Wed Dec 6 12:52:41 UTC 2006
> ----- Original Message -----
> From: "Clive Menzies" <clive at clivemenzies.co.uk>
> To: ubuntu-users at lists.ubuntu.com
> Subject: Re: Starting the Rsync Daemon (rsyncd) on boot
> Date: Wed, 6 Dec 2006 10:25:01 +0000
> On (06/12/06 19:52), Peter Garrett wrote:
> > On Wed, 6 Dec 2006 08:32:09 +0000
> > Clive Menzies <clive at clivemenzies.co.uk> wrote:
> > > To ensure rsync runs as daemon, edit /etc/inetd.conf:
> > > # rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
> > > Restart inetd as root:
> > > # /etc/init.d/inetd restart
> > $ less /etc/init.d/inetd.conf
> > /etc/init.d/inetd.conf: No such file or directory
> > Not there by default, and I think not needed for rsyncd.
> > As far as i know, Ubuntu does not use inetd or xinetd ....
> > $ apt-file search /etc/init.d/inetd
> > netkit-inetd: etc/init.d/inetd
> > $ apt-cache policy netkit-inetd
> > netkit-inetd:
> > Installed: (none)
> > Candidate: 0.10-10.2ubuntu1
> > Version table:
> > 0.10-10.2ubuntu1 0
> > 500 http://mirror.optus.net dapper/main Packages
> > 500 http://mirror.pacific.net.au dapper/main Packages
> > So, the start up script does not exist, unless you install netkit-inetd ,
> > which evidently is not present by default, at least on dapper ( 6.06)
> Ah! Apologies. I checked on a debian server I run.
Thanks for your insights. I too came to the conclusion that Dapper does not use inetd.
Basically to get it working, I defined the rysncd data paths in rsyncd.conf which is not present, has to be created.
Then I modified my rc.local to include two lines so that permissions would be set and the rsync daemon would be started on boot.
chown -R nobody:users /home/user/Data
gid = user
max connections = 0
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
path = /home/user/Data
comment = test rsync area for DATA
read only = no
chroot = no
timeout = 3600
hosts allow = 192.168.0.10
hosts deny = *
More information about the ubuntu-users