[sudo-users] disabling sudo fork-ing

Ciprian Dorin, Craciun ciprian.craciun at gmail.com
Fri Aug 20 05:17:05 EDT 2010

    Hello all!

    I've been using `sudo` for quite some time in some of my scripts,
to start long-running processes that don't daemonize. (This is
required by the `runit` and `daemontools` frameworks.)

    Unfortunately lately it seems that `sudo` is broken in this
respect, meaning it always forks and waits for the process to finish,
and this is problematic because `runit` service termination implies
sending signals to the daemon (which is now the `sudo` process, which
doesn't relay the signals to its actual child).

    After a short investigation I've found that the change was
(probably) introduced in the following commit:

    So my question is: how can I force `sudo` not to fork and to
`execve` the new command? (In the man page I've not found any useful


More information about the sudo-users mailing list