Instead of doing this from the daemon program itself, why not run a shell script from cron that checks for the daemon running and starts a new one if it's not? Seems to be a lot simpler than trying to do everything in the daemon code.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
In reply to Re: Disowning CRON
by hardburn
in thread Disowning CRON
by daveime
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |