Re: Chkconfig
- From: Greg Hackney <hackney@xxxxxxxxxx>
- Date: Tue, 07 Nov 2006 15:28:27 GMT
mbrugo@xxxxxxxxx wrote:
Hi to all.
I need to add a new service so i 've used a script found on /etc/init.d
and modified with my options.
Then i've used chkconfig to add my script to start and stop on each
runlevel.
chkconfig --add em (em is my script) :
#!/bin/sh
#
# chkconfig: 2345 99 35
# description: Starts and stops the EM (Oracle 10G)
# #
# script: /opt/oracle/app/oracle/product/EM10G/SH/EM.SH (root)
# script: /opt/oracle/app/oracle/product/EM10G/SH/em.SH (em10g)
so on level 3,4,5 i 've a S99 link and 0,1,6 i've a K35.
My question is:
why when server start, my em script run but when i do a reboot (i
suppose init 6) my script doesn't ?
Make sure that the /etc/init.d/em script has the permissions set to executable.
Run the command "who -r" to see what the normal run level is for your system.
Run the command "chkconfig --list em" to list the off/on states for each run level.
If it's not set to "on" for your run level, for example level 5,
run the command "chkconfig --level 5 em on"
Look at /var/log/messages for clues.
--
Greg
.
- References:
- Chkconfig
- From: mbrugo
- Chkconfig
- Prev by Date: sound not audible
- Next by Date: Re: Linux - Redhat Monitoring
- Previous by thread: Chkconfig
- Next by thread: Test Message
- Index(es):
Relevant Pages
|