Заметил, что некорректно останавливаются некоторые демоны при рестарте. Решил потестировать и вот что получилось:
[root@db ~]# cat /etc/init.d/testinit
#!/bin/bash
# chkconfig: 234 99 1
case $1 in
start)
echo "`date` Starting..." >> /root/testinit
;;
stop)
echo "`date` Stopping..." >> /root/testinit
;;
esac
exit 0
[root@db ~]# chkconfig testinit --add
[root@db ~]# chkconfig testinit --list
testinit 0:off 1:off 2:on 3:on 4:on 5:off 6:off
[root@db ~]# find /etc/rc.d/ -name '*testinit*'
/etc/rc.d/rc3.d/S99testinit
/etc/rc.d/init.d/testinit
/etc/rc.d/rc2.d/S99testinit
/etc/rc.d/rc0.d/K01testinit
/etc/rc.d/rc1.d/K01testinit
/etc/rc.d/rc6.d/K01testinit
/etc/rc.d/rc5.d/K01testinit
/etc/rc.d/rc4.d/S99testinit
[root@db ~]# cat testinit
Fri Jul 26 15:53:27 MSK 2013 Starting...
Fri Jul 26 15:58:12 MSK 2013 Starting...