[lxc-users] lxc stop ignored
Aleksandar Ivanisevic
aleksandar at ivanisevic.de
Fri Sep 4 08:30:49 UTC 2020
Hi,
perfect, thank you, that file is still there in centos6 image. It is actually right there in the source, I don’t know how I missed it, probably too far down ;)
https://github.com/lxc/lxc-ci/blob/master/images/centos.yaml <https://github.com/lxc/lxc-ci/blob/master/images/centos.yaml>
> On 4. Sep 2020, at 10:16, Harald Dunkel <harald.dunkel at aixigo.com> wrote:
>
> Hi Aleksandar,
>
> I've found some old README for configuring RedHat LXC containers:
>
> # create an upstart handler for SIGPWR
> 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
> # for RHEL5: edit /etc/inittab to set
> pf::powerfail:/sbin/shutdown -h now "Power Failure; System Shutting Down"
>
>
> But I am not sure if this is applicable to CentOS 6.
>
> Hope this helps
> Harri
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20200904/49d5909f/attachment.htm>
More information about the lxc-users
mailing list