LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   chkconfig --add (https://www.linuxquestions.org/questions/linux-general-1/chkconfig-add-504070/)

noir911 11-22-2006 07:55 PM

chkconfig --add
 
I made an rpm from rsync 2.6.9 and installed in FC5. I want to add it to chkconfig and did a "chkconfig --add rsync"
it says "error reading information on service rsync: No such file or directory". Then I copied "/usr/bin/rsync" to /etc/rc.d/init.d" and did "chkconfig --add rsync" and it says "service rsync does not support chkconfig"

gruntwerk 11-22-2006 09:58 PM

I find rsync in /etc/xinetd.d I would imagine that you need to configure it in rsync.conf and then run chkconfig for xinetd and restart xinetd.

the rsync man page says something about starting it in daemon mode you may be able to add it to rc.local as rsync --daemon

just a few thoughts. ask if you need directions

denver1980 11-22-2006 09:59 PM

Do not copy your binary to the /etc/init.d/ dir ... this i meant to be the location of the bash script to operate rsync.
Look in the contrib dir of your "pre-rpm" version of rsync, you should have a script for that.
try
Code:

grep chkconfig /the/forlder/contrib/
The solution is in you /etc/init.d/rsync script.
Make sure it has a commented line like
Code:

# chkconfig: 2345 24 96
where :
2345 are the runlevels you want your service to run
24 is the rank where it should be started
96 is the rank where it should be stopped

For more details ... man chkconfig :study:

noir911 11-23-2006 01:26 AM

There's no contrib folder, I searched the entire system for one rsync contrib folder. There is none.

There's also no "/etc/init.d/rsync". The only binary is /usr/bin/rsync and I use /usr/bin/rsync --daemon to start rsync. I want to put it in /etc/rc.d/init.d/ and also add it to chkconfig. Is there anything else I should try?


All times are GMT -5. The time now is 10:09 PM.