place systemd units in /usr/lib/systemd/system

This commit is contained in:
2024-10-08 17:35:33 +03:00
parent e85abb7d03
commit a874dd2618
+3 -1
View File
@@ -73,7 +73,9 @@ func (s *systemd) Platform() string {
func (s *systemd) configPath() (cp string, err error) { func (s *systemd) configPath() (cp string, err error) {
if !s.isUserService() { 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 return
} }
homeDir, err := os.UserHomeDir() homeDir, err := os.UserHomeDir()