Commit 6bf8daf9 by Stéphane Graber

Add SIGINT and SIGPWR handler in lxc-debian

This adds a SIGINIT and SIGPWR handler in the default inittab for the Debian template. This allows lxc-shutdown/lxc-restart and their API calls to properly shutdown or reboot the container. Signed-off-by: 's avatarRex Tsai (蔡志展) <rex.tsai@canonical.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 70542ef9
...@@ -54,6 +54,8 @@ c1:12345:respawn:/sbin/getty 38400 tty1 linux ...@@ -54,6 +54,8 @@ c1:12345:respawn:/sbin/getty 38400 tty1 linux
c2:12345:respawn:/sbin/getty 38400 tty2 linux c2:12345:respawn:/sbin/getty 38400 tty2 linux
c3:12345:respawn:/sbin/getty 38400 tty3 linux c3:12345:respawn:/sbin/getty 38400 tty3 linux
c4:12345:respawn:/sbin/getty 38400 tty4 linux c4:12345:respawn:/sbin/getty 38400 tty4 linux
p6::ctrlaltdel:/sbin/init 6
p0::powerfail:/sbin/init 0
EOF EOF
# disable selinux in debian # disable selinux in debian
......
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