diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-02 23:43:58 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-02 23:43:58 (EDT) |
commit | aaea4241bd7c846036c8830e810a14895a02c9ac (patch) | |
tree | e29823d12380798ce24f81498d0f297e20d78862 /src.etc | |
parent | 57f175ae5f51376c2657a2b733388eada6296931 (diff) |
Conditionally disable service starting.
Diffstat (limited to 'src.etc')
-rw-r--r-- | src.etc/rc.common | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src.etc/rc.common b/src.etc/rc.common index 8ccb6f7..42f33d6 100644 --- a/src.etc/rc.common +++ b/src.etc/rc.common @@ -32,6 +32,9 @@ main() fi if [ "x${ALL_CMDS#* ${action} }" != "x${ALL_CMDS}" ]; then + if [ "x${action}" = 'xstart' ] && [ -e /etc/rc.policy ]; then + [ "x$(cat /etc/rc.policy)" = 'disabled' ] && return 0 + fi ${action} es=${?} log_end ${es} |