diff --git a/internal/router/service_tomato.go b/internal/router/service_tomato.go index 1a7151a..2cf5939 100644 --- a/internal/router/service_tomato.go +++ b/internal/router/service_tomato.go @@ -45,11 +45,15 @@ func (s *tomatoSvc) Platform() string { } func (s *tomatoSvc) configPath() string { - path, err := os.Executable() - if err != nil { - return "" + bin := s.Config.Executable + if bin == "" { + path, err := os.Executable() + if err != nil { + return "" + } + bin = path } - return path + ".startup" + return bin + ".startup" } func (s *tomatoSvc) template() *template.Template {