summaryrefslogtreecommitdiff
path: root/examples/rc.tini
diff options
context:
space:
mode:
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