Skip to content

Commit

Permalink
Fixed issue 256 of original repo.: #256
Browse files Browse the repository at this point in the history
  • Loading branch information
mever committed May 12, 2021
1 parent ef35c56 commit 1a2c9cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_systemd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (s *systemd) Status() (Status, error) {
return StatusRunning, nil
case strings.HasPrefix(out, "inactive"):
// inactive can also mean its not installed, check unit files
exitCode, out, err := runWithOutput("systemctl", "list-unit-files", "-t", "service", s.Name)
exitCode, out, err := runWithOutput("systemctl", "list-unit-files", "-t", "service", s.Name + ".service")
if exitCode == 0 && err != nil {
return StatusUnknown, err
}
Expand Down

0 comments on commit 1a2c9cb

Please sign in to comment.