summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-03-02 09:41:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-03-02 09:41:24 +0000
commit23fba266a9454ee6ca095b7f6eccf523f6526607 (patch)
tree7350fdaba49b1529a13d50f6396aea35f340954d /examples
parent54d0dc0990f13a86680fa55c623f0570853749ac (diff)
downloads6-linux-init-23fba266a9454ee6ca095b7f6eccf523f6526607.tar.xz
Save pending changes in 1.0.0.0 branch
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