diff --git a/init/init-lib.pl b/init/init-lib.pl index 790016b8b..e2c3b834f 100755 --- a/init/init-lib.pl +++ b/init/init-lib.pl @@ -62,8 +62,7 @@ elsif ($config{'init_base'} && -d "/etc/init" && &execute_command("/sbin/init --version") == 0) { $init_mode = "upstart"; } -elsif ($config{'init_base'} && -d "/etc/systemd" && - &has_command("systemctl") && +elsif (-d "/etc/systemd" && &has_command("systemctl") && &execute_command("systemctl list-units") == 0) { $init_mode = "systemd"; }