mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-07 08:50:38 +00:00
Adds a logging daemon that collects logs in a ring buffer in a runc container. The tools logwrite and logread can be used to read/write logs. The logging daemon can be sent open file descriptors that will be read and included in the logs. Modifies init to start the daemon and use logwrite to capture logs from runc. Signed-off-by: Magnus Skjegstad <magnus@skjegstad.com>
16 lines
365 B
Plaintext
16 lines
365 B
Plaintext
# /etc/inittab
|
|
|
|
::sysinit:/etc/init.d/rcS
|
|
::once:/etc/init.d/containerd
|
|
::once:/etc/init.d/containers
|
|
|
|
# Stuff to do for the 3-finger salute
|
|
::ctrlaltdel:/sbin/reboot
|
|
|
|
# Stuff to do before rebooting
|
|
::shutdown:/usr/sbin/killall5 -15
|
|
::shutdown:/bin/sleep 5
|
|
::shutdown:/usr/sbin/killall5 -9
|
|
::shutdown:/bin/echo "Unmounting filesystems"
|
|
::shutdown:/bin/umount -a -r
|