]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
archlinux template: added sigpwr handling to systemd (lxc-stop)
authorEdvinas Klovas <edvinas@pnd.io>
Sat, 3 May 2014 17:15:36 +0000 (19:15 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 7 May 2014 13:38:36 +0000 (08:38 -0500)
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 <edvinas@pnd.io>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-archlinux.in [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 45243cf..d9fe42d
@@ -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