service: add Config.Executable field to allow service to control other binaries.

This commit is contained in:
Daniel Theophanes
2015-03-14 08:49:17 -07:00
parent 17f5541e81
commit 49d681e0cb
6 changed files with 344 additions and 339 deletions
+1 -3
View File
@@ -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
}