LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-22-2006, 07:55 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
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"
 
Old 11-22-2006, 09:58 PM   #2
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
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
 
Old 11-22-2006, 09:59 PM   #3
denver1980
Member
 
Registered: Dec 2004
Location: Québec
Distribution: Gentoo, Kubuntu Karmic
Posts: 48

Rep: Reputation: 15
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

Last edited by denver1980; 11-22-2006 at 10:17 PM.
 
Old 11-23-2006, 01:26 AM   #4
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
How do I add a program to the chkconfig --list? hunterhunter Linux - General 1 04-12-2006 05:13 PM
Chkconfig doesn't work? wylum Linux - Software 7 05-19-2004 07:06 PM
chkconfig ?? jchin Linux - Newbie 4 10-16-2003 01:59 AM
Help on chkconfig ztopher Linux - Software 0 04-09-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration