grep your ps aux and parse it, you can write a little script to do that ...

On 12/26/05, Al-Faisal El-Dajani < [EMAIL PROTECTED]> wrote:
Hey guys,

I need to write some kind of a daemon, that would check to see if a certain program is up or not, and if it is not running smoothly, the daemon would restart the program. Any clues of how to go about it?

I though of doing it using a cron job, but can a cron detect crashes and restart things?

--
Al-Faisal El-Dajani
Tel: +962-7-77 799 781
P.O Box: 140056
11814 Amman, Jordan

May the source be with you

_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org





--
                                 Ala'a A. Ibrahim
http://360.yahoo.com/bai_83
http://alaa83.blogspot.com/
_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org

Reply via email to