[lxc-users] fedora template sigpwr (lxc-stop) handling?

Michael H. Warfield mhw at WittsEnd.com
Fri May 30 17:43:58 UTC 2014


On Thu, 2014-05-29 at 22:15 +0700, Fajar A. Nugraha wrote:
> On Thu, May 15, 2014 at 10:19 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
> >
> > On Thu, 2014-05-15 at 22:04 +0700, Fajar A. Nugraha wrote:
> 
> 
> >
> > > lxc-stop doesn't work without "-k". I remember reading about this on
> > > the list some time ago, might be useful to integrate the workaround in
> > > the template.
> > > ####
> > > [root at f20 ~]# Received SIGPWR.
> > > ####
> >
> > I already integrated some thing in there.  Should no longer be a problem
> > though that update may not have made it into a release yet.
> >
> 
> Hi Mike,
> 
> Is that fix in upstream lxc? I checked
> https://github.com/lxc/lxc/blob/master/templates/lxc-fedora.in , line
> 374-375

>    # Make systemd honor SIGPWR
>     chroot ${rootfs_path} ln -s /usr/lib/systemd/system/halt.target
> /etc/systemd/system/

> Following http://www.freedesktop.org/software/systemd/man/systemd.special.html
> , shouldn't the last part be sigpwr.target?

>     chroot ${rootfs_path} ln -s /usr/lib/systemd/system/halt.target
> /etc/systemd/system/sigpwr.target

Yeah, that appears to be correct.  I'll send in a patch.  Another
alternative would be to add a symlink from halt.target to sigpwr.target
to link their behavior together.

> -- 
> Fajar

Thanks!

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 978-7061 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140530/2004f50e/attachment.sig>


More information about the lxc-users mailing list