[lxc-users] lxc-stop doesn't stop centos, waits for the timeout

Dwight Engen dwight.engen at oracle.com
Wed Feb 26 15:17:53 UTC 2014


On Wed, 26 Feb 2014 09:54:43 +0100
Flo <florian.engelmann at gmail.com> wrote:

> Any solution for Fedora 20?

This is what I'm doing for Oracle Linux 7, it'll probably work for
Fedora 20 as well (in the container rootfs):

ln -s /usr/lib/systemd/system/halt.target /etc/systemd/system/sigpwr.target
 
> On Wed, Feb 26, 2014 at 9:39 AM, Alvaro Miranda Aguilera
> <kikitux at gmail.com>wrote:
> 
> > ack'
> >
> >
> > On Sun, Feb 23, 2014 at 8:40 AM, Istvan Balazs
> > <balazs.istvan at gmail.com>wrote:
> >
> >> testaasdf
> >>
> >>
> >> 2014-02-21 11:22 GMT+01:00 Harald Dunkel <harald.dunkel at aixigo.de>:
> >>
> >> Found it: upstart ignores SIGPWR by default.
> >>>
> >>> Fix:
> >>>
> >>> cat <<EOF >/etc/init/power-status-changed.conf
> >>> #  power-status-changed - shutdown on SIGPWR
> >>> #
> >>> start on power-status-changed
> >>>
> >>> exec /sbin/shutdown -h now "SIGPWR received"
> >>> EOF
> >>>
> >>>
> >>> Regards
> >>> Harri
> >>>
> >>> _______________________________________________
> >>> lxc-users mailing list
> >>> lxc-users at lists.linuxcontainers.org
> >>> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>>
> >>
> >>
> >> _______________________________________________
> >> lxc-users mailing list
> >> lxc-users at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>
> >
> >
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> >



More information about the lxc-users mailing list