From 28a9543e091058c62734f34eb010d9e5212deb08 Mon Sep 17 00:00:00 2001 From: et-nik Date: Tue, 27 Feb 2024 21:40:06 +0100 Subject: [PATCH] fix winsw --- internal/processmanager/winsw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/processmanager/winsw.go b/internal/processmanager/winsw.go index 7ae31e9..4f1bbb2 100644 --- a/internal/processmanager/winsw.go +++ b/internal/processmanager/winsw.go @@ -279,7 +279,7 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) { if filepath.Ext(executable) == ".bat" { executable = "cmd.exe" - argArr = append(argArr, "/c", cmd) + argArr = append(argArr, "/c", executable) } argArr = append(argArr, cmdArr[1:]...)