summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/rc.init19
-rwxr-xr-xexamples/rc.shutdown16
2 files changed, 0 insertions, 35 deletions
diff --git a/examples/rc.init b/examples/rc.init
deleted file mode 100755
index afc7735..0000000
--- a/examples/rc.init
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/execlineb -P
-
-# Set the system clock to something sensible,
-# to get coherent logs until the initial NTP exchange
-
-if { s6-clock @400000005a58000000000000 }
-
-
-# Initialize the service manager
-
-if { s6-rc-init /run/service }
-
-
-# Run the service manager.
-# Call it twice because the first time may spuriously "timeout"
-# due to the clock jumping forward.
-
-if -nt { s6-rc -t 600000 -- change ok-all }
-s6-rc -t 600000 -- change ok-all
diff --git a/examples/rc.shutdown b/examples/rc.shutdown
deleted file mode 100755
index 14b4692..0000000
--- a/examples/rc.shutdown
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/execlineb -P
-
-
-# Write a message to /var/log/syslogd
-
-foreground
-{
- s6-ipcclient -l0 /dev/log
- fdmove 1 7
- s6-echo "/etc/rc.shutdown: shutdown requested"
-}
-
-
-# Shut down all services
-
-s6-rc -da change