Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion service_systemd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (s *systemd) Platform() string {

func (s *systemd) configPath() (cp string, err error) {
if !s.isUserService() {
cp = "/etc/systemd/system/" + s.unitName()
// /usr/lib/systemd/system is the lowest priority directory in the
// unit search path
cp = "/usr/lib/systemd/system/" + s.unitName()
return
}
homeDir, err := os.UserHomeDir()
Expand Down