Re: [vserver] Upstart Problem

From: Jeff Jansen <>
Date: Fri 28 Jan 2011 - 02:01:57 GMT
Message-ID: <>

On Friday 28,January,2011 12:15 AM, Michael Hoffrath wrote:
> I really can't find any solution for this problem, someone with the same problem here?

You're right to comment out the 'expect fork' because that doesn't work
properly in vserver guests, but you also need to tell the program in
questions NOT to fork so upstart can "track" it.

In this case, add the "-D" switch to your 'exec' line to tell sshd not
to fork and background itself. So change your exec line to:

exec /usr/sbin/sshd -D

Now sshd doesn't background itself and upstart can keep track of it.

I have to do the same thing for rsyslog and cron on my Lucid guests so
they don't background themselves either.

exec rsyslog -n
exec cron -f

Watch out for updates to these programs. They will often try to put the
original init script back and then hang because they can't track the
daemon properly if they restart it. :-)


Jeff Jansen
Received on Fri Jan 28 02:02:13 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 28 Jan 2011 - 02:02:14 GMT by hypermail 2.1.8