This commit is contained in:
Jamie Cameron
2012-01-31 14:01:37 -08:00
parent 4112b20624
commit 886aa07ce7

View File

@@ -54,7 +54,8 @@ elsif ($config{'init_base'} && -d "/etc/init" &&
$init_mode = "upstart";
}
elsif ($config{'init_base'} && -d "/etc/systemd" &&
&has_command("systemctl")) {
&has_command("systemctl") &&
&execute_command("systemctl list-units") == 0) {
$init_mode = "systemd";
}
elsif ($config{'init_base'}) {