mirror of
https://github.com/webmin/webmin.git
synced 2026-06-24 21:10:29 +01:00
Merge branch 'master' of git@github.com:webmin/webmin
This commit is contained in:
@@ -57,14 +57,14 @@ elsif ($config{'hostconfig'}) {
|
||||
elsif ($config{'rc_dir'}) {
|
||||
$init_mode = "rc";
|
||||
}
|
||||
elsif ($config{'init_base'} && -d "/etc/init" && &has_command("initctl")) {
|
||||
$init_mode = "upstart";
|
||||
}
|
||||
elsif ($config{'init_base'} && -d "/etc/systemd" &&
|
||||
&has_command("systemctl") &&
|
||||
&execute_command("systemctl list-units") == 0) {
|
||||
$init_mode = "systemd";
|
||||
}
|
||||
elsif ($config{'init_base'} && -d "/etc/init" && &has_command("initctl")) {
|
||||
$init_mode = "upstart";
|
||||
}
|
||||
elsif ($config{'init_base'}) {
|
||||
$init_mode = "init";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user