"watchdog" for a process?
Bart Silverstrim
bsilver at chrononomicon.com
Thu Sep 20 12:51:48 UTC 2007
sktsee wrote:
> On Wed, 2007-09-19 at 14:53 -0400, Bart Silverstrim wrote:
>> Is there a quick and short script, maybe something that can be run in
>> Cron, that will look at the process list and if a process has been
>> killed or had died will restart the process?
>>
>
> You should find something in list generated with the following command:
>
> $ apt-cache search process |grep monitor
>
> (hint)
> ps-watcher seems to fit your criteria.
>
True, the listing (even with Synaptic) will give some results. But I've
danced the "let's install a bunch of similar things and see which works
best" dance quite a bit in my time, and whenever possible now I ask
about it in hopes that someone else can say "I use XYZ and it works very
well..."
Yes, apt-get works well, but there are plenty of instances where cruft
gets left behind in places, or I forget to uninstall something at some
point, etc...etc...
Thank you for the pointer. I'll check it out.
More information about the ubuntu-users
mailing list