Added fix in linux_get_init()
This commit is contained in:
parent
9ed7f32872
commit
bbbafb0205
@ -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 ]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user