|
From: Jim E. <je...@fr...> - 2003-04-15 16:35:42
|
I've set up my wrapper to boot/shutdown from /etc/init.d and /etc/rc.d/rcNd using 'chkconfig: 2345 89 11' in the script and running chkconfig --add. Testing from the command line, the wrapper responds correctly to service start/stop commands. Here is the wrapper log produced from stop issued from the command line: The wrapper also starts at bootime in the order I expected. My problem is that the wrapper appears to not respond to the stop command when I issue shutdown -r now from the command line. I do not receive the "Stopping " message on the linux console, or any other message indicating the script has received a stop command. Instead the wrapper thread seems to be responding to the killall issued by linux and the end of shutdown. Here is the wrapper log from a shutdown -r now command: I'm not sure what I might have done wrong here. I created my script using the directions in the docs, but I did have to hard code the SCRIPT_DIR and SCRIPT variables, since they assumed the script was running from somewhere other then init.d... Is there some circumstance where linux will not issue the stop command to a kill script? I have other scripts that I've set up through chkconfig and they work fine? Any ideas? Jim |