place systemd units in /usr/lib/systemd/system
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user