How to start rsync daemon at boot
Peter Garrett
peter.garrett at optusnet.com.au
Mon Jun 19 10:42:01 UTC 2006
On Fri, 16 Jun 2006 15:00:39 +1200 (NZST)
"Jame Dobbs" <jamie.dobbs at ihug.co.nz> wrote:
> I have an i386 installed of Ubuntu 6.06 and I want to have an rsync daemon
> start at boot time but despite much Googling, reading of man pages and
> general seeking stuff out I cannot find a way to do this.
> Only thing of use I found was something telling me to add a line to inetd
> or xinetd to run it, but as neither of these files exist on my system I
> don't think that's a viable option.
> Can someone please help me out here.
Actually at least on this system ( 6.06, dist-upgraded from breezy 5.10 )
the relevant start-up file
/etc/init.d/rsync
already exists.
It appears that
RSYNC_ENABLE=false
in that file would need to be changed to "true" and that the setting for
RSYNC_ENABLE
needs to be "true" in /etc/default/rsync
The /etc/default/rsync file also admonishes:
# Don't forget to create an appropriate config file,
# else the daemon will not start.
Apparently, from my reading of the output of " dpkg -L rsync" , it seems
that the file should be called " rsyncd.conf ", but that this file does not
exist by default - I assume you would create /etc/rsyncd.conf with
reference to
man rsyncd.conf
I found all this out by trying to create an
@reboot /usr/bin/rsync --daemon
entry in the root crontab, without success ;-)
Fortunately the /etc/init.d/rsync file is rather well commented, and more
or less comprehensible (unlike many scripts) and the man pages are
unusually clear, including several examples.
Hope this is of some use - personally I haven't had the need to run rsync
as a daemon, but it looks like it is possible using the steps I've tried to
outline above. Of course, I found myself pondering, yet again, why one
needs to become a detective to work out this kind of seemingly
straightforward configuration option ;-)
Peter
More information about the ubuntu-users
mailing list