Re: [vserver] debian jessie error on vserver shutdown

From: Daniel Urist <durist_at_ucar.edu>
Date: Thu 07 Jan 2016 - 16:31:28 GMT
Message-ID: <CAEo6=KYtLmcLMXUvuC0oeSpQ2K=4zNXyuvtONagykHSUOPDzWg@mail.gmail.com>

If somebody wants to add it to the wiki, here's what I had to do to get a
clean shutdown of a Jessie container:

1) Disable "/etc/init.d/sendsigs" completely, so it doesn't kill off any
processes too early (vserver stop will do that anyway if it hits the
timeout).

  rm /etc/init.d/sendsigs
  update-rc.d sendsigs remove

I also removed the "halt" and "reboot" scripts, though that's probably not
necessary.

2) Add kill script links in /etc/rc6.d for "cron", "dbus" and "ssh". These
don't exist because their init scripts have a blank "Default-Stop" header.
The simplest way to remedy this is to add override headers in
/etc/insserv/overrides and force insserv to rebuild the links; this is a
bit convoluted but is better than modifying the init scripts in case an
upgraded package has newer ones, which won't be installed if the originals
have been modified.

  for s in cron dbus ssh; do
    sed -rn -e 's/^(# Default-Stop:).*$/\1 0 1 6/' -e '/^### BEGIN INIT
INFO/,/^### END INIT INFO/p' /etc/init.d/$s > /etc/insserv/overrides/$s
  done
  /sbin/insserv -v -d

On Wed, Jan 6, 2016 at 2:04 AM, Ben Green <ben@bristolwireless.net> wrote:

> Quoting Herbert Poetzl <herbert@13thfloor.at>:
>
>
>> Thanks for the diagnostic and feedback.
>> Other debian folks might be interested in your modifications,
>> so please consider sharing them somehow.
>>
>>
> Could any resulting documentation be linked from this page please:
>
> http://linux-vserver.org/Installation_on_Debian
>
>
Received on Thu Jan 7 16:29:30 2016

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 07 Jan 2016 - 16:29:30 GMT by hypermail 2.1.8