Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Best way to ensure process is liveby ask (Pilgrim) |
on Mar 02, 2002 at 06:51 UTC ( [id://148784]=note: print w/replies, xml ) | Need Help?? |
For monitoring I would try connecting to it; check that it's work spool is not growing larger than X or something else that works for the specific application.
For keeping a daemon alive I usually use the following for that kind of thing. If the process really wants to exit it does so with exit code 10; otherwise it'll get started again.
(replace foo with something else if you want to make sure you always start the program as a specific user). - ask -- ask bjoern hansen, http://ask.netcetera.dk/ !try; do();
In Section
Seekers of Perl Wisdom
|
|