diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-17 13:31:20 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-07-17 13:31:20 +0000 |
commit | 17c03cf8f0a6339d78ad8fb968ef3b999d658034 (patch) | |
tree | e9c5d8596ebe30216d916943fb7ef8c99ad7f0c6 /examples/rc.tini | |
parent | 602e835f5afd57cc8659e78f28034e1a2d362248 (diff) | |
download | s6-linux-init-17c03cf8f0a6339d78ad8fb968ef3b999d658034.tar.xz |
Import /etc/rc.[init tini shutdown] examples from lh-bootstrap
Diffstat (limited to 'examples/rc.tini')
-rwxr-xr-x | examples/rc.tini | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/rc.tini b/examples/rc.tini index abefb22..02e7ec7 100755 --- a/examples/rc.tini +++ b/examples/rc.tini @@ -1,3 +1,16 @@ #!/bin/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 |