how to register auto start/stop service script with chkconfig
Linux - SoftwareThis 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.
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.
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.
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.