diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-22 21:56:04 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-05-22 21:56:04 +0000 |
commit | 82d0f92ab8b84466ae20ab919c1f9c3577b5cecb (patch) | |
tree | 776015ae6c6a386125b2d39e13b62f91b99548f8 /layout/rootfs/etc/rc.tini | |
download | lh-bootstrap-82d0f92ab8b84466ae20ab919c1f9c3577b5cecb.tar.xz |
Initial commit
Diffstat (limited to 'layout/rootfs/etc/rc.tini')
-rwxr-xr-x | layout/rootfs/etc/rc.tini | 15 |
1 files changed, 15 insertions, 0 deletions
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 |