diff options
Diffstat (limited to 'ctdb')
-rwxr-xr-x | ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local b/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local index e9a7f99829a..2f506e907a2 100755 --- a/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local +++ b/ctdb/tests/UNIT/eventscripts/etc-ctdb/rc.local @@ -1,24 +1,14 @@ # Hey Emacs, this is a -*- shell-script -*- !!! :-) -# Use a "service" command in $PATH if one exists. +# Always use stub version of service command service () { - if _t=$(which "service" 2>/dev/null) ; then - "$_t" "$@" - else - _nice="" - _service "$@" - fi + "${CTDB_HELPER_BINDIR}/service" "$@" } nice_service () { - if _t=$(which "service" 2>/dev/null) ; then - nice "$_t" "$@" - else - _nice="nice" - _service "$@" - fi + nice "${CTDB_HELPER_BINDIR}/service" "$@" } # Always succeeds |