Added fix in linux_get_init()
This commit is contained in:
@@ -91,7 +91,7 @@ check_platform 'Linux' || {
|
|||||||
|
|
||||||
# default is sysv
|
# default is sysv
|
||||||
LINUX_INIT="sysv"
|
LINUX_INIT="sysv"
|
||||||
if [[ -r /usr/lib/systemd ]]
|
if [[ -r /usr/lib/systemd && -x /usr/bin/systemctl ]]
|
||||||
then
|
then
|
||||||
LINUX_INIT="systemd"
|
LINUX_INIT="systemd"
|
||||||
elif [[ -r /usr/share/upstart ]]
|
elif [[ -r /usr/share/upstart ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user