LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2005, 08:55 AM   #1
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Rep: Reputation: 15
chkconfig problem



Hello Everybody,
I have 3 scripts[entl.sh,eth1.sh,eth2.sh] that i want to run during the bootup process:
1] I dumpped all the three scripts into /etc/init.d

2] I made them executable by giving:
chmod +x entl.sh
chmod +x eth1.sh
chmod +x eth2.sh

3] I entered their names in the /etc/rc.d/rc.local file

4] I issued the "chkconfig --add entl.sh"

But i get the error:

"Service entl.sh does not support chkconfig"

Can anybody tell me why I am getting this error

Regards
KartheeK
 
Old 05-04-2005, 09:25 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Sounds like you did not include the chkconfig configuration comments for runlevels in your scripts.
http://linux.about.com/library/cmd/b..._chkconfig.htm

like
# chkconfig: 2345 20 80

Last edited by michaelk; 05-04-2005 at 09:34 AM.
 
Old 05-06-2005, 12:48 AM   #3
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Yes got it, every thing working fine. I added chkconfig comment lines at the start of all my scripts. Example:

# chkconfig: 3 59 52
# chkconfig: bla bla bla

Then i issued,

#chkconfig --add filename


Thankyou
Regards
KartheeK
 
  


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 Off
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 01:31 PM
chkconfig problem !!! lewkh Red Hat 2 03-10-2005 11:28 PM
chkconfig problem chynna_v Linux - Software 5 09-13-2004 06:31 PM
Help on chkconfig ztopher Linux - Software 0 04-09-2003 04:29 AM
chkconfig problem isvip1 Linux - Newbie 2 09-03-2002 04:43 PM


All times are GMT -5. The time now is 08:51 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration