Red Hat Topics - chkconfig

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > November 2006 > chkconfig





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author chkconfig
mbrugo@gmail.com

2006-11-06, 1:12 pm

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com