From 880f4e9790d44661cb1a1074316973cb35a719fc Mon Sep 17 00:00:00 2001 From: et-nik Date: Tue, 27 Feb 2024 22:11:22 +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 9f602db..cf8f911 100644 --- a/internal/processmanager/winsw.go +++ b/internal/processmanager/winsw.go @@ -313,7 +313,7 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) { if filepath.Ext(executable) == ".bat" { executable = "cmd.exe" - argArr = append(argArr, "/c", executable) + argArr = append(argArr, "/c", cmdArr[0]) } argArr = append(argArr, cmdArr[1:]...)