Mongodb upstart script
eapache at gmail.com
Sat Mar 17 19:03:16 UTC 2012
On Sat, Mar 17, 2012 at 2:42 PM, Steve Langasek
<steve.langasek at ubuntu.com>wrote:
> On Sat, Mar 17, 2012 at 09:09:11AM -0400, Evan Huus wrote:
> > The cookbook has the answer  :)
> > TLDR: If you're running upstart 1.4 or later, you can use the 'setuid'
> > 'setgid' stanzas. Otherwise you'll have to use su, sudo or
> > start-stop-daemon. Start-stop-daemon is recommended, because su and sudo
> > a bunch of extra stuff to the PAM session that is probably unnecessary
> > 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.
I didn't realize that (PAM interactions are not something I know much
about). The cookbook should probably be reworded to make this point clearer
then, since right now it's just 'generally advised' not to use su or sudo.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the upstart-devel