Operating System - HP-UX
1826909 Members
3000 Online
109705 Solutions
New Discussion

Re: Start & Kill scripts in rc*.d

 
SOLVED
Go to solution
Vibhor Kumar Agarwal
Esteemed Contributor

Re: Start & Kill scripts in rc*.d

There you go.

"shutdown -r" did the job.

And we were struggling with all the heck. ;-)
Vibhor Kumar Agarwal
Dennis Handly
Acclaimed Contributor

Re: Start & Kill scripts in rc*.d

>And we were struggling with all the heck. ;-)

I guess we assumed you knew that. ;-)

You can also test without rebooting by using "init s" or other levels, to go up and down.
Pete Randall
Outstanding Contributor

Re: Start & Kill scripts in rc*.d

Obviously your kill scripts were never going to work as long as they were being skipped by your use of the reboot command, but I do believe you had several other problems (putting the scripts directly in the rc?.d directories, following the rules outline in the rc man page, etc.) that also would have given you problems. So, while it may seem like everything was fixed by switching to the shutdown command, I think a lot of very positive work happened here to make your shutdown process successful.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Start & Kill scripts in rc*.d

Shalom,

Reboot then the system is hung and not responsive.

If you want the kill scripts to execute, shutdown -r
shutdown -h

You can put a set -x in the script to try and get some data as to which script is hanging and why.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tingli
Esteemed Contributor

Re: Start & Kill scripts in rc*.d

If it is hung during booting up, you can use Ctrl\ to escape from it.