mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Checking for /etc/rc.d makes no sense on systemd systems https://github.com/webmin/webmin/issues/835
This commit is contained in:
@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user