Skip to content

Commit

Permalink
place systemd units in /usr/lib/systemd/system
Browse files Browse the repository at this point in the history
Using /usr/lib/systemd/system allows local sysadmins to overwrite to unit file
by placing one of the same name in /etc/systemd/system.

Fixes: #259
  • Loading branch information
behrmann committed Jun 10, 2021
1 parent 8eb6809 commit 86c620f
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 @@ -69,7 +69,7 @@ func (s *systemd) Platform() string {

func (s *systemd) configPath() (cp string, err error) {
if !s.isUserService() {
cp = "/etc/systemd/system/" + s.unitName()
cp = "/usr/lib/systemd/system/" + s.unitName()
return
}
homeDir, err := os.UserHomeDir()
Expand Down

0 comments on commit 86c620f

Please sign in to comment.