I've create a script and associated links(via chkconfig). The script runs in the expected runlevels at boot time, but does not run at all during shutdown(halt, reboot, etc). I swear I've done this a million times. What am I overlooking?
# cat /etc/issue CentOS release 3.5 (Final) Kernel \r on an \m
# chkconfig --list chnghst chnghst 0:off 1:on 2:off 3:off 4:off 5:off 6:off
localhost:# find /etc/rc* |grep chngh /etc/rc.d/init.d/chnghst /etc/rc.d/rc0.d/K07chnghst /etc/rc.d/rc1.d/S10chnghst /etc/rc.d/rc2.d/K87chnghst /etc/rc.d/rc3.d/K07chnghst /etc/rc.d/rc4.d/K07chnghst /etc/rc.d/rc5.d/K07chnghst /etc/rc.d/rc6.d/K07chnghst
# uname -a Linux localhost 2.4.21-32.ELsmp #1 SMP Wed May 18 17:49:28 EDT 2005 i686 i686 i386 GNU/Linux
tia,
-mark
/etc/rc.d/init.d/chnghst /etc/rc.d/rc0.d/K07chnghst /etc/rc.d/rc1.d/S10chnghst /etc/rc.d/rc2.d/K87chnghst /etc/rc.d/rc3.d/K07chnghst /etc/rc.d/rc4.d/K07chnghst /etc/rc.d/rc5.d/K07chnghst /etc/rc.d/rc6.d/K07chnghst
why K07 S10 and K87? Shouldn't it be S10 and K87 all of them?
Cheers, MaZe.
And are you creating the /var/lock/subsys/chnghst file when the subsystem starts up?
Did you really mean to only start it up in single user mode (only one S.. script)
Cheers, MaZe.
Maciej Żenczykowski wrote:
/etc/rc.d/init.d/chnghst /etc/rc.d/rc0.d/K07chnghst /etc/rc.d/rc1.d/S10chnghst /etc/rc.d/rc2.d/K87chnghst /etc/rc.d/rc3.d/K07chnghst /etc/rc.d/rc4.d/K07chnghst /etc/rc.d/rc5.d/K07chnghst /etc/rc.d/rc6.d/K07chnghst
why K07 S10 and K87? Shouldn't it be S10 and K87 all of them?
That's a mistake - a side effect of trying different numbers to see if it would help - it didn't.
-Mark
Cheers, MaZe. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos