systemd config file name may be different to unit name

This commit is contained in:
Jamie Cameron
2021-09-09 21:52:19 -07:00
parent 20db4a29cf
commit 1e08584c20

View File

@@ -2196,7 +2196,7 @@ foreach my $name (keys %info) {
'stop' => $i->{'ExecStop'},
'reload' => $i->{'ExecReload'},
'pid' => $i->{'ExecMainPID'},
'file' => $root."/".$name,
'file' => $i->{'FragmentPath'} || $root."/".$name,
});
}