diff --git a/service_systemd_linux.go b/service_systemd_linux.go index 99c5e2a..8b82109 100644 --- a/service_systemd_linux.go +++ b/service_systemd_linux.go @@ -132,7 +132,7 @@ func (s *systemd) Install() error { return fmt.Errorf("Init already exists: %s", confPath) } - f, err := os.Create(confPath) + f, err := os.OpenFile(confPath, os.O_WRONLY|os.O_CREATE, 0644) if err != nil { return err }