summaryrefslogtreecommitdiff
path: root/skel/rc.init
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-19 01:58:02 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-19 01:58:02 +0000
commit203b2b6f21764f4535bed9779ea7e2cbeb6e43cb (patch)
tree011d5f0b40f9ac673c2fd877bc5f4b1f2e786088 /skel/rc.init
parent5e17662d138fc9c9f70a4422eab059c2bdc9432d (diff)
downloads6-linux-init-203b2b6f21764f4535bed9779ea7e2cbeb6e43cb.tar.xz
Small improvements to skel and autogeneration
Diffstat (limited to 'skel/rc.init')
-rwxr-xr-xskel/rc.init11
1 files changed, 11 insertions, 0 deletions
diff --git a/skel/rc.init b/skel/rc.init
index 47824d7..4c7211f 100755
--- a/skel/rc.init
+++ b/skel/rc.init
@@ -36,3 +36,14 @@ shift
### override the default.
# exec /etc/s6-linux-init/current/scripts/runlevel "$rl"
+
+
+### If this script is run in a container, then 1. and 2. above do not
+### apply and you should just call your CMD, if any, or let your
+### services run.
+### Something like this:
+
+# if test -z "$*" ; then return 0 ; fi
+# $@
+# echo $? > /run/s6-linux-init-container-results/exitcode
+# halt