mirror of
https://github.com/webmin/webmin.git
synced 2026-08-13 19:10:34 +01:00
Handle case where systemd is not running https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3481271&group_id=17457
This commit is contained in:
@@ -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'}) {
|
||||
|
||||
Reference in New Issue
Block a user