From bbbafb02053c34b23e6d24340588a357ad988690 Mon Sep 17 00:00:00 2001 From: Patrick Van der Veken Date: Wed, 21 Mar 2018 14:21:50 +0100 Subject: [PATCH] Added fix in linux_get_init() --- sources/lib/core/include_os.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/lib/core/include_os.sh b/sources/lib/core/include_os.sh index 248778c..ef2d9e8 100644 --- a/sources/lib/core/include_os.sh +++ b/sources/lib/core/include_os.sh @@ -91,7 +91,7 @@ check_platform 'Linux' || { # default is sysv LINUX_INIT="sysv" -if [[ -r /usr/lib/systemd ]] +if [[ -r /usr/lib/systemd && -x /usr/bin/systemctl ]] then LINUX_INIT="systemd" elif [[ -r /usr/share/upstart ]]