summaryrefslogtreecommitdiff
path: root/examples/rc.tini
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-07-17 13:31:20 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-07-17 13:31:20 +0000
commit17c03cf8f0a6339d78ad8fb968ef3b999d658034 (patch)
treee9c5d8596ebe30216d916943fb7ef8c99ad7f0c6 /examples/rc.tini
parent602e835f5afd57cc8659e78f28034e1a2d362248 (diff)
downloads6-linux-init-17c03cf8f0a6339d78ad8fb968ef3b999d658034.tar.xz
Import /etc/rc.[init tini shutdown] examples from lh-bootstrap
Diffstat (limited to 'examples/rc.tini')
-rwxr-xr-xexamples/rc.tini13
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