I have a daemon, written in C++, that must stop working immediately on a system shutdown. in its startup script, I put: # chkconfig: 35 90 1 I presume the "1" means it should be among the first to be stopped, but it goes on too long. Any suggestions? Perhaps a system call that I could add that would inform it that the system is going down? Thanks for your help. Mike.