hardy init script status action

Matt Zimmerman mdz at ubuntu.com
Tue Mar 18 09:59:36 GMT 2008

On Tue, Mar 18, 2008 at 12:23:59AM -0500, Dustin Kirkland wrote:
> On Fri, 2008-03-14 at 16:39 +0000, Matt Zimmerman wrote:
> > So long as, wherever possible, this uses more reliable methods (pid files,
> > control sockets, etc.), I don't see a problem with the general design.
> Yes, the pidofproc() function in /lib/lsb/init-functions is intelligent
> in just such a way.

I looked at it, and it seems to try to "guess" this by assuming that the
process name and the pid file name are identical.  That's not what I meant,
however, and daemons which use a pid file should explicitly check this
(perhaps using the -p option to pidofproc, or via start-stop-daemon).

 - mdz

More information about the ubuntu-devel mailing list