]> git.pld-linux.org Git - packages/lxc.git/commitdiff
fix lxc-stop activites (SIGPWR sent to init)
authorElan Ruusamäe <glen@delfi.ee>
Thu, 3 Jul 2014 13:33:08 +0000 (16:33 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 3 Jul 2014 13:33:08 +0000 (16:33 +0300)
lxc-pld.in.sh

index ca1677a8dbff63103a9aab985883f5d242769f95..57132a58584a82063cdb4cbe5fc085d7067d2c2f 100755 (executable)
@@ -103,12 +103,8 @@ EOF
 
 configure_pld_init()
 {
-       # Setup getty service on the 4 ttys we are going to allow in the
-       # default config. Number should match lxc.tty
-#      sed -i -e 's///' ${rootfs_path}/etc/inittab
-
-       # nothing done here yet
-       :
+       # default powerfail action waits 2 minutes. for lxc we want it immediately
+       sed -i -e '/^pf::powerfail:/ s,/sbin/shutdown.*,/sbin/halt,' ${rootfs_path}/etc/inittab
 }
 
 configure_pld_systemd()
This page took 0.055843 seconds and 4 git commands to generate.