rc/inittab
James Buren 12dcfd81a6 rc: modify inittab to support LXC and LXD containter shutdown
This uses the largely unused entries that exists for UPS integration
with sysvinit to properly shutdown the containers when SIGPWR is sent
to the container's process 1.
2019-02-22 17:32:36 +01:00

32 lines
692 B
Plaintext

#
# /etc/inittab: system runlevel description
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Multi-user
# 3-5 Not used
# 6 Reboot
id:2:initdefault:
rc::sysinit:/etc/rc
rs:S1:wait:/etc/rc.single
rm:2:wait:/etc/rc.multi
rd:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
c1:2:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2:respawn:/sbin/agetty 38400 tty2 linux
c3:2:respawn:/sbin/agetty 38400 tty3 linux
c4:2:respawn:/sbin/agetty 38400 tty4 linux
c5:2:respawn:/sbin/agetty 38400 tty5 linux
c6:2:respawn:/sbin/agetty 38400 tty6 linux
#s1:2:respawn:/sbin/agetty 38400 ttyS0 vt100
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
pf::powerfail:/sbin/shutdown -t3 -h now
# End of file