mirror of
https://github.com/webmin/webmin.git
synced 2025-07-23 00:30:33 +00:00
Don't test for non-native services as returned status may be false-positive
This commit is contained in:
@ -550,8 +550,8 @@ elsif ($init_mode eq "systemd") {
|
||||
my $out = &backquote_command("systemctl is-enabled ".
|
||||
quotemeta($unit)." 2>&1");
|
||||
$out = &trim($out);
|
||||
return 2 if ($out =~ /.*^enabled$/mi);
|
||||
return 1 if ($out =~ /.*^disabled$/mi);
|
||||
return 2 if ($out eq "enabled");
|
||||
return 1 if ($out eq "disabled");
|
||||
}
|
||||
}
|
||||
if ($init_mode eq "init" || $init_mode eq "upstart" ||
|
||||
|
Reference in New Issue
Block a user