service: add Config.Executable field to allow service to control other binaries.
This commit is contained in:
@@ -12,8 +12,6 @@ import (
|
||||
"syscall"
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/kardianos/osext"
|
||||
)
|
||||
|
||||
func isSystemd() bool {
|
||||
@@ -75,7 +73,7 @@ func (s *systemd) Install() error {
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
path, err := osext.Executable()
|
||||
path, err := s.execPath()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user