Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to starup rsync as a daemon.
I tried "rsync --daemon", no error message but ps could not find it.
Here is what I do know.
1. /etc/xinetd.d/rsync does exist (I changed disble to = no)
2. /us/bin/rsync executable exists.
3. there is no entry in /etc/rc.d/init.d for rsync(d)
4. rsync(d).conf does not exist.
5. using latest redhat version of rsync (2.6.3)
6. kernel 2.6.11-1.14_FC3
I
nterestingly enough, I have rsync working fine on my windows machines, using cygwin. I am having troubles with Fedora!
First of all, note that there is a "Fedora" forum here at linuxquestions.org. The "Red Hat" forum is for Red Hat Enterprise Linux and old Red Hat Linux.
You don't need a separate rsync daemon, because the rsync server is driven by the Internet services daemon xinetd. Instead of editing /etc/xinetd.d/rsync yourself, you would simply run "chkconfig rsync on" and configure rsync (read "man rsyncd.conf"). That is, you must create the rsyncd.conf file. When xinetd is active and running, it would start rsync for incoming connections. If it is not running already, "chkconfig xinetd on ; service xinetd start" enables and starts it.
The rsync daemon is launched by specifying the --daemon option to rsync.
The daemon must run with root privileges if you wish to use chroot, to bind to a port numbered under 1024 (as is the default 873), or to set file ownership. Otherwise, it must just have permission to read and write the appropriate data, log, and lock files.
You can launch it either via inetd, as a stand-alone daemon, or from an rsync client via a remote shell. If run as a stand-alone daemon then just run the command "rsync --daemon" from a suitable startup script. If run from an rsync client via a remote shell (by specifying both the "-e/--rsh" option and server mode with "::" or "rsync://"), the --daemon option is automatically passed to the remote side.
When run via inetd you should add a line like this to /etc/services:
rsync 873/tcp
and a single line something like this to /etc/inetd.conf:
rsync stream tcp nowait root /usr/bin/rsync rsyncd --daemon
Replace "/usr/bin/rsync" with the path to where you have rsync installed on your system. You will then need to send inetd a HUP signal to tell it to reread its config file.
Note that you should not send the rsync server a HUP signal to force it to reread the rsyncd.conf file. The file is re-read on each client connection.
No. inetd and xinetd use fundamentally different configuration files. rsync via xinetd comes pre-configured on Fedora Core 3 (and older). He just needs to read my post and set up rsyncd.conf according to the manual page.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.