diff options
author | Michael Hanson <hansonorders@verizon.net> | 2011-02-24 02:39:48 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2011-02-24 02:39:48 (GMT) |
commit | b4b39219a4202ec5cd46a3dcf1082d9b8e966013 (patch) | |
tree | ea91f15990ff66b021f5c668b7405e9d8adee1eb /abs/core/runit-scripts/runitscripts | |
parent | febdab96da49ba703e105345c103fce7a903a3e8 (diff) | |
download | linhes_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-x | abs/core/runit-scripts/runitscripts/3 | 10 | ||||
-rwxr-xr-x | abs/core/runit-scripts/runitscripts/3.local | 3 |
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 + |