lkml.org 
[lkml]   [2001]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Off-Topic: how do I trace a PID over double-forks?
From
Date
Jesse Pollard <pollard@tomcat.admin.navo.hpc.mil> writes:

> Ummm ... basicly a "respawn" entry in the inittab is enough for that.

Nope, see below.

> If you wanted sendmail then:
>
> sndm:234:respawn:/usr/lib/sendmail -bd -q15m
>
> Will restart sendmail whenever it aborts in runleves 2,3, or 4.

Sendmail in daemon mode forks right away, and the child is the
daemon. All init will know is that the process it started exited
right away, and you'll get a "respawning too fast" message.

I don't recall if there's an option to sendmail that says "be a
daemon, but run in the foreground." Probably is, for debugging.

-Doug
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:13    [W:0.054 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site