From 754793bae73492d7370bd063a9ac5d8b0c53af22 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Wed, 2 May 2012 09:29:11 +0200 Subject: [PATCH] Bugfix init_is_upstart(): use test and full paths. Git-Dch: None --- init-functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init-functions b/init-functions index c9abd33..3f01189 100644 --- a/init-functions +++ b/init-functions @@ -264,8 +264,7 @@ get_lsb_header_val () { # upstart job, it should generally exit non-zero in this case. init_is_upstart() { - if which initctl && initctl version | grep -q upstart - then + if [ -x /sbin/initctl ] && /sbin/initctl version | /bin/grep -q upstart; then return 0 fi return 1 -- 2.30.2