Here is a good example: http://cr.yp.to/daemontools/svc.html
Download the source and examine it. >Hi All, >Thank you very much for the feedback. Now, suppose I want to write a >daemon >for Unix in C whose job is to monitor other daemons and restart dead >daemons. The daemon may take the list of such daemons to monitor from a >file. I want to know how can this be programmatically achieved. > >Thank you, >Gowtham _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"