aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-02-27 13:28:06 +0100
committerLukas Nykryn <lnykryn@redhat.com>2015-02-27 13:35:53 +0100
commit8447253e512d98316c5ab9cbcfe335720163349b (patch)
tree7a1574250348f51990da2d3f96b6749dfe59b8e2 /rc.d/init.d
parentbfde26c1bb47b18270f511021a68a3dc481c042b (diff)
downloadinitscripts-8447253e512d98316c5ab9cbcfe335720163349b.tar
initscripts-8447253e512d98316c5ab9cbcfe335720163349b.tar.gz
initscripts-8447253e512d98316c5ab9cbcfe335720163349b.tar.bz2
initscripts-8447253e512d98316c5ab9cbcfe335720163349b.tar.xz
initscripts-8447253e512d98316c5ab9cbcfe335720163349b.zip
init.d/functions: rc.debug option to debug initscripts
Diffstat (limited to 'rc.d/init.d')
-rw-r--r--rc.d/init.d/functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 9f1c76f1..245cc3f5 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -595,3 +595,6 @@ if [ "$_use_systemctl" = "1" ]; then
exit $?
fi
fi
+
+strstr "$(cat /proc/cmdline)" "rc.debug" && set -x
+