Re: [vserver] Upstart Problem

From: Michael Hoffrath <m.hoffrath_at_clano-it.com>
Date: Fri 28 Jan 2011 - 10:43:48 GMT
Message-Id: <E0332A49-E532-4766-94A2-1B0723954929@clano-it.com>

Jeff,

Am 28.01.2011 um 03:01 schrieb Jeff Jansen:

> 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
>

i've also tried this, but it won't work? I will give it another try later this day.

> 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. :-)

Do you have any advise how to prevent this (without giving the +i flag to the files)?
>
> HTH
>
> Jeff Jansen
Received on Fri Jan 28 10:44:00 2011

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