Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 18:48:34 +0300
From:      "Sergey S. Ropchan" <fenix@ramb.com.ua>
To:        Gowtham <ic.gowtham@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Daemon Process
Message-ID:  <1639417618.20050516184834@ramb.com.ua>
In-Reply-To: <2ab1ba0c05051608414c0884c7@mail.gmail.com>
References:  <2ab1ba0c05051608414c0884c7@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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:fenix@ramb.com.ua



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1639417618.20050516184834>