Hello Gowtham,

Monday, May 16, 2005, 6:41:03 PM, you wrote:

> Hi,
> I want to know how can I programmatically restart a dead daemon process in
> Unix?

You can restart daemon process with:

kill -HUP `cat /path/to/processname.pid`

or you can do that in your own C program this kill syscall, read
before:

man 2 kill


-- 
Best regards,
 Sergey  S. Ropchan                         mailto:[EMAIL PROTECTED]

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to