Chkconfig



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 ?

Thanks

Mike

.



Relevant Pages

  • RE: RH9 Processes Failing
    ... This section tells chkconfig what runlevels to start and stop the script ... Enable daily run of yum, ... This is the bit that does the actual startup - it creates a new command ...
    (RedHat)
  • Re: One-box, one-user: could I have done it all with chkconfig?
    ... > conclusion of system setup. ... chkconfig is all you really need. ... The script could be quite useful _if_ you write a robust (ie., ... change distros) the script will have to reflect those changes. ...
    (comp.os.linux.security)
  • Re: v120 reboot problem
    ... > Maybe a script or something is not shutting down. ... A reboot does not run shutdown scripts. ... init 6 does. ...
    (comp.unix.solaris)
  • Re: using chkconfig
    ... >> error that the service squid is not supported by ... > the top to support chkconfig. ... Our startup script does have the lines. ... Squid - Internet Object Cache. ...
    (RedHat)
  • Where to find logs/traces when a service on RedHat does not start
    ... chkconfig --list | grep cruise ... This is my script: ... # echo PARPIDs $PARPID ...
    (comp.unix.shell)