[cod] Restart script
Brandon Ewing
nicotine at warningg.com
Wed Nov 28 14:41:06 EST 2007
On Wed, Nov 28, 2007 at 01:33:12PM -0500, Geoff Goas wrote:
> i'm looking forward to that, brandon
>
It's slow work, as SysV-style scripts usually depend on the process itself
to handle daemonizing and pid control. I'm researching some ways around
this without compromising ending up with a fully SysV compliant script.
Ryan: My wishlist for something like this in the following order, in terms
of commandline switches:
1. --pidfile= (to specify where to record the pid of the process)
2. --daemonize (to close file handles, drop controlling tty, and get
adopted by pid1)
3. --user= (to drop privs to a specific user if executed by uid 0, after
pidfile has been written)
Any of the above in the next binary would bring tears of joy from me.
--
Brandon Ewing (nicotine at warningg.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://icculus.org/pipermail/cod/attachments/20071128/b65bdd9b/attachment.pgp>
More information about the Cod
mailing list