Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
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.
|
 |
02-03-2006, 10:56 PM
|
#1
|
LQ Newbie
Registered: Jun 2005
Posts: 16
Rep:
|
how to register auto start/stop service script with chkconfig
Hi, guys:
I am seeking help from linux guru to help me fix chkconfig registration problem.
I have installed Fedora Core 4 and Oracle 10g successfully. After that, I created a auto start/stop shell script as /etc/init.d/dbora. Then I chmod 755 /etc/init.d/dbora. Then I linked the script to appropriate run-level as "ln -s/etc/init.d/dbora /etc/rc0.d/K10dbora", "ln -s /etc/init.d/dbora /etc/rc3.d/S99dbora". After all these steps, I typed " chkconfig --add dbora " and " chkconfig --levels 345 dbora on". The system responded with " service dbora does not support chkconfig". I verified by " chkconfig --list | grep dbora". The service script didn't be added up into chkconfig. I have read some of instruction on line and made some changes on scripts. It all didn't work. Hope any guru can give me some tips to solve this problem. Thanks for your time to read and respond to this in advance.
|
|
|
02-04-2006, 12:10 AM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
I'm not a guru. But did you base your script on the skeleton script? The comments at the top are important. I believe the skeleton script should be in /etc/init.d/skeleton. I'm not using Fedora Core, but it should be in there. There is a comment line near the top that chkconfig uses.
It is the chkconfig command that produces the links, so I am guessing that your script didn't conform with what it expected.
|
|
|
02-04-2006, 12:38 AM
|
#3
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
The points jschiwal made are clarified at the end of “man chkconfig”, where the additional lines in the script needed by chkconfig are described.
|
|
|
02-04-2006, 01:19 PM
|
#4
|
LQ Newbie
Registered: Jun 2005
Posts: 16
Original Poster
Rep:
|
jschiwal,WhatsHisName:
Thanks for your input. The problem has been solved. That is a typo in chkconfig -20 80. It has a space in front of 20. It works now.
|
|
|
02-04-2006, 01:32 PM
|
#5
|
LQ Newbie
Registered: Nov 2003
Posts: 24
Rep:
|
thanks for letting unknow the fix
|
|
|
09-13-2006, 01:58 AM
|
#6
|
LQ Newbie
Registered: Sep 2006
Posts: 2
Rep:
|
Quote:
Originally Posted by travellers
jschiwal,WhatsHisName:
Thanks for your input. The problem has been solved. That is a typo in chkconfig -20 80. It has a space in front of 20. It works now.
|
hi jschiwal,
I have Oracle Apps 10g running in my red hat linux as 3 box. I wanted to automate the startup and shutdown also. As I have excerted effort to build the script and to surf the web for resources, I find myself basically the same with your problem (i.e. "service orainfrstr does not support chkconfig") as i try to add the script in /etc/init.d/ and create a symbolic link to /etc/rc3.d/
I already have inserted the first few commented lines such as chkconfig and functions, but it made no difference.
I hope that you can share me your script and the step you have made, bacause it's kind of customized script and doesn't have template like dbora.
thanks in advance.
reydp
|
|
|
09-13-2006, 05:01 AM
|
#7
|
LQ Newbie
Registered: Sep 2006
Posts: 2
Rep:
|
Quote:
Originally Posted by reydp
hi jschiwal,
I have Oracle Apps 10g running in my red hat linux as 3 box. I wanted to automate the startup and shutdown also. As I have excerted effort to build the script and to surf the web for resources, I find myself basically the same with your problem (i.e. "service orainfrstr does not support chkconfig") as i try to add the script in /etc/init.d/ and create a symbolic link to /etc/rc3.d/
I already have inserted the first few commented lines such as chkconfig and functions, but it made no difference.
I hope that you can share me your script and the step you have made, bacause it's kind of customized script and doesn't have template like dbora.
thanks in advance.
reydp
|
I'm sorry. I'm addressing this to traveller

|
|
|
09-13-2006, 10:08 AM
|
#8
|
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151
Rep:
|
Quote:
Originally Posted by reydp
... i try to add the script in /etc/init.d/and ...
|
Put the script in the correct location (i.e., /etc/rc.d/init.d) and try “chkconfig --add ...” again.
In redhat-style distros, /etc/init.d is a link to /etc/rc.d/init.d
|
|
|
06-15-2009, 11:02 AM
|
#9
|
LQ Newbie
Registered: Feb 2005
Location: Charleroi, PA 30 mi SE of Pgh
Distribution: RedHat, Fedora, Oracle
Posts: 22
Rep:
|
dbora not configured for chkconfig
I had this same error...
First 6 lines must be 100% correct to work! I ended up copying lines from a diff script to get it to work... Here are my first few lines for dbora...
#! /bin/bash
#
# network Bring up/down networking
#
# chkconfig: 345 20 80
# description: Starts and stops the Oracle database and listeners
#
# /etc/rc.d/init.d/oracle
# See how we were called.
My question for anyone, is the 20 80 start/stop priority.... Are they good numbers? Should they be different?
|
|
|
All times are GMT -5. The time now is 12:08 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
|
|