From: Edvinas Klovas Date: Sat, 3 May 2014 17:15:36 +0000 (+0200) Subject: archlinux template: added sigpwr handling to systemd (lxc-stop) X-Git-Tag: lxc-1.0.4~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0cc26e9047f775efee87c62b4e2edfd7e499510;p=thirdparty%2Flxc.git archlinux template: added sigpwr handling to systemd (lxc-stop) archlinux is using systemd and systemd's configuration does not have any services setup to handle sigpwr hook which is sent by lxc-stop command. By enabling sigpwr service we make sure that lxc-stop will work. Signed-off-by: Edvinas Klovas Acked-by: Stéphane Graber --- diff --git a/templates/lxc-archlinux.in b/templates/lxc-archlinux.in old mode 100644 new mode 100755 index 45243cf2d..d9fe42dce --- a/templates/lxc-archlinux.in +++ b/templates/lxc-archlinux.in @@ -111,6 +111,8 @@ for i in systemd-udevd.service \ done # set default systemd target ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target +# enable sigpwr signal handling in systemd as otherwise lxc-stop won't work +ln -s /usr/lib/systemd/system/poweroff.target /etc/systemd/system/sigpwr.target # initialize pacman keyring pacman-key --init pacman-key --populate archlinux