mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix systemd service detection
https://github.com/virtualmin/virtualmin-pro/issues/16#issuecomment-1030869911
This commit is contained in:
@@ -2377,7 +2377,8 @@ sub is_systemd_service
|
||||
{
|
||||
my ($name) = @_;
|
||||
foreach my $s (&list_systemd_services(1)) {
|
||||
if ($s->{'name'} eq $name && !$s->{'legacy'}) {
|
||||
if (($s->{'name'} eq $name ||
|
||||
$s->{'name'} eq "$name.service") && !$s->{'legacy'}) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user