[packages/lxc] fix lxc-stop activites (SIGPWR sent to init)

glen glen at pld-linux.org
Thu Jul 3 15:33:11 CEST 2014


commit a4227158475307d17096daa302468aeaeb8192fb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jul 3 16:33:08 2014 +0300

    fix lxc-stop activites (SIGPWR sent to init)

 lxc-pld.in.sh | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/lxc-pld.in.sh b/lxc-pld.in.sh
index ca1677a..57132a5 100755
--- a/lxc-pld.in.sh
+++ b/lxc-pld.in.sh
@@ -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()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxc.git/commitdiff/a4227158475307d17096daa302468aeaeb8192fb



More information about the pld-cvs-commit mailing list