aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-04-03 08:44:48 +0100
committerColin Guthrie <colin@mageia.org>2012-04-03 08:44:48 +0100
commitb009616cb9c87586506ad1e55fe277bac93da627 (patch)
tree9a516b1a1e7c184ca2675f5755e2f299a8e1dc51
parent25e26735664e1d8391da988e124b45026cc40bfc (diff)
downloadinitscripts-b009616cb9c87586506ad1e55fe277bac93da627.tar
initscripts-b009616cb9c87586506ad1e55fe277bac93da627.tar.gz
initscripts-b009616cb9c87586506ad1e55fe277bac93da627.tar.bz2
initscripts-b009616cb9c87586506ad1e55fe277bac93da627.tar.xz
initscripts-b009616cb9c87586506ad1e55fe277bac93da627.zip
functions: Add a SYSTEMCTL_NO_BLOCK env var
-rw-r--r--rc.d/init.d/functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 43b3abe4..48fa2c01 100644
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -51,7 +51,10 @@ systemctl_redirect () {
esac
if [ -n "$SYSTEMCTL_IGNORE_DEPENDENCIES" ] ; then
- options="--ignore-dependencies"
+ options="$options --ignore-dependencies"
+ fi
+ if [ -n "$SYSTEMCTL_NO_BLOCK" ] ; then
+ options="$options --no-block"
fi
action "$s" /bin/systemctl $options $command "$prog.service"