On Fri, 03 Dec 2010 15:43:10 -0500, m.roth-x6lchVBUigD1P9xLtpHBDw wrote: > Michael D. Berger wrote: >> I have a daemon that throws an exception whenever I shutdown or reboot. >> However, stopping it with kill -15, or calling the stop command in its >> start stop script (in /etc/init.d/) results in correct termination. >> >> Therefore, might it be that shutdown or reboot call an initial script >> in which I can stop the daemon, and then delay a little? > > Wait - what I get from what you say, above, is that it's not killed by > its script in /etc/init.d: why not? What's the output from chkconfig > --list <servicename>? > > mark No, chkconfig returns the correct result, and the proper links appear in /etc/rc.d/... . The daemon is complex, and there is plenty that might slow down a shutdown. BTW, its control script contains: # chkconfig: 35 97 3 so am giving it plenty of time, but perhaps not enough. Furthermore, the daemon name appears in the shutdown listing in the expected way. Mike.