From 15850b1f010ea71f92ec96dfd98027affcfc073a Mon Sep 17 00:00:00 2001 From: et-nik Date: Thu, 29 Feb 2024 19:03:40 +0100 Subject: [PATCH] winsw: add autorefresh --- internal/processmanager/winsw.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/processmanager/winsw.go b/internal/processmanager/winsw.go index a1eb8ec..5572273 100644 --- a/internal/processmanager/winsw.go +++ b/internal/processmanager/winsw.go @@ -411,9 +411,8 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) { {Action: "restart", Delay: "5 sec"}, {Action: "restart", Delay: "5 sec"}, }, - Startmode: "Automatic", - DelayedAutoStart: "true", - ResetFailure: "1 hour", + ResetFailure: "1 hour", + AutoRefresh: "false", } rawPw, exists := pm.cfg.Users[server.User()] @@ -484,8 +483,7 @@ type WinSWServiceConfig struct { OnFailure []onFailure `xml:"onfailure,omitempty"` ResetFailure string `xml:"resetfailure,omitempty"` - Startmode string `xml:"startmode"` - DelayedAutoStart string `xml:"delayedAutoStart"` + AutoRefresh string `xml:"autoRefresh,omitempty"` Logpath string `xml:"logpath,omitempty"` Log log `xml:"log,omitempty"`