Commit db821c3a by KATOH Yasufumi Committed by Stéphane Graber

plamo: Improve template for lxc-stop

patch /etc/inittab in plamo container to shutdown when it receives SIGPWR. (By default, plamo shutdowns to single user mode after 5minutes) Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 1c1c60e4
...@@ -178,6 +178,12 @@ configure_plamo() { ...@@ -178,6 +178,12 @@ configure_plamo() {
EOF EOF
# /etc/inittab # /etc/inittab
cat <<- "EOF" | patch $rootfs/etc/inittab cat <<- "EOF" | patch $rootfs/etc/inittab
32,33c32,33
< # What to do when power fails (shutdown to single user).
< pf::powerfail:/sbin/shutdown -f +5 "THE POWER IS FAILING"
---
> # What to do when power fails (shutdown).
> pf::powerfail:/sbin/shutdown -h +0 "THE POWER IS FAILING"
47a48 47a48
> 1:1235:respawn:/sbin/agetty 38400 console > 1:1235:respawn:/sbin/agetty 38400 console
52,53d52 52,53d52
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment