From a874dd26185e2e9ca8b7bbe7eb7bef62c671fdbb Mon Sep 17 00:00:00 2001 From: Sergey Solodyagin Date: Tue, 8 Oct 2024 17:35:33 +0300 Subject: [PATCH] place systemd units in /usr/lib/systemd/system --- service_systemd_linux.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service_systemd_linux.go b/service_systemd_linux.go index e9fb4d6..1de95be 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -73,7 +73,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()