Skip to content

Commit

Permalink
winsw: add autorefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 29, 2024
1 parent 2e3440a commit 15850b1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/processmanager/winsw.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()]
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 15850b1

Please sign in to comment.