| Red Hat This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-24-2005, 04:01 PM
|
#1
|
|
LQ Newbie
Registered: May 2005
Posts: 3
Rep:
|
rsync daemon
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!
TIA
Help!
|
|
|
|
06-01-2005, 12:34 PM
|
#2
|
|
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074
Rep:
|
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.
|
|
|
|
06-02-2005, 04:53 AM
|
#3
|
|
Member
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136
Rep:
|
LAUNCHING THE RSYNC DAEMON
This is how to go
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.
|
|
|
|
06-02-2005, 06:05 AM
|
#4
|
|
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074
Rep:
|
Quote:
Originally posted by bramhastra
When run via inetd you should add a line like this to /etc/services:
|
Please don't mess with /etc/services. It knows about the rsync port number by default. Also note that xinetd is used, not inetd.
|
|
|
|
06-02-2005, 06:16 AM
|
#5
|
|
Member
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136
Rep:
|
Well he can give a try and see if it works
|
|
|
|
06-02-2005, 06:21 AM
|
#6
|
|
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074
Rep:
|
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.
|
|
|
|
06-04-2005, 08:37 PM
|
#7
|
|
LQ Newbie
Registered: May 2005
Posts: 3
Original Poster
Rep:
|
Thanks guys, It works fine now!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|