summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2011-02-24 02:39:48 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2011-02-24 02:39:48 (GMT)
commitb4b39219a4202ec5cd46a3dcf1082d9b8e966013 (patch)
treeea91f15990ff66b021f5c668b7405e9d8adee1eb /abs/core/runit-scripts/runitscripts
parentfebdab96da49ba703e105345c103fce7a903a3e8 (diff)
downloadlinhes_pkgbuild-b4b39219a4202ec5cd46a3dcf1082d9b8e966013.zip
linhes_pkgbuild-b4b39219a4202ec5cd46a3dcf1082d9b8e966013.tar.gz
linhes_pkgbuild-b4b39219a4202ec5cd46a3dcf1082d9b8e966013.tar.bz2
runit-scripts: Add a local shutdown script (3.local) for custom shutdown commands
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/310
-rwxr-xr-xabs/core/runit-scripts/runitscripts/3.local3
2 files changed, 13 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/3 b/abs/core/runit-scripts/runitscripts/3
index 50b3e92..d4b0a6a 100755
--- a/abs/core/runit-scripts/runitscripts/3
+++ b/abs/core/runit-scripts/runitscripts/3
@@ -9,4 +9,14 @@ then
kill -9 $pid 2>/dev/null
fi
export PREVLEVEL=3
+
+#user added stuff for level 3 of runit
+if [ -e /etc/runit/3.local ]
+then
+ #exec the file
+ stat_busy /etc/runit/3.local
+ /etc/runit/3.local
+ stat_done
+fi
+
/etc/rc.shutdown
diff --git a/abs/core/runit-scripts/runitscripts/3.local b/abs/core/runit-scripts/runitscripts/3.local
new file mode 100755
index 0000000..4aa8220
--- /dev/null
+++ b/abs/core/runit-scripts/runitscripts/3.local
@@ -0,0 +1,3 @@
+#!/bin/bash
+#local user shutdown script, run at the end of runit 3
+