in reply to Re: Re: Re: (slightly OT) catching SIGTERM when system goes down
in thread (slightly OT) catching SIGTERM when system goes down
echo will not be seen during shutdown
I meant your echo system-call with redirection to the file.
Of course you did - how silly of me! I did sprinkle echos in the sig_handler, etc. - I still didn't see it on reboot. But...
I theory the script will be run as a daemon (alternate: demon) - but during testing I'm just running it from the console. I think that's my problem - yet another example of solving bugs by just explaining the problem to someone else. But anyway, what signal will my program get in the case when its parent is a console that got killed by a reboot?
--
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: (slightly OT) catching SIGTERM when system goes down
by Tomte (Priest) on Apr 09, 2003 at 15:16 UTC |