Mongodb upstart script

Steve Langasek steve.langasek at ubuntu.com
Sat Mar 17 18:42:19 UTC 2012


On Sat, Mar 17, 2012 at 09:09:11AM -0400, Evan Huus wrote:
> The cookbook has the answer [1] :)

> TLDR: If you're running upstart 1.4 or later, you can use the 'setuid' and
> 'setgid' stanzas. Otherwise you'll have to use su, sudo or
> start-stop-daemon. Start-stop-daemon is recommended, because su and sudo do
> a bunch of extra stuff to the PAM session that is probably unnecessary for
> a daemon process.

It's not that it's "probably unnecessary", it's that it's actively harmful
to run PAM sessions for most daemons.  You don't want every daemon on your
system to show up as an active session to consolekit.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20120317/5fe5fbd0/attachment.pgp>


More information about the upstart-devel mailing list