From 82d0f92ab8b84466ae20ab919c1f9c3577b5cecb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 22 May 2017 21:56:04 +0000 Subject: Initial commit --- layout/rootfs/etc/rc.tini | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 layout/rootfs/etc/rc.tini (limited to 'layout/rootfs/etc/rc.tini') diff --git a/layout/rootfs/etc/rc.tini b/layout/rootfs/etc/rc.tini new file mode 100755 index 0000000..67a79b3 --- /dev/null +++ b/layout/rootfs/etc/rc.tini @@ -0,0 +1,15 @@ +#!/command/execlineb -P + +# Write a message to /var/log/syslogd + +foreground +{ + s6-ipcclient -l0 /dev/log + fdmove 1 7 + s6-echo "/etc/rc.tini: shutdown requested" +} + + +# Shut down all services + +s6-rc -da change -- cgit v1.2.3