Merge pull request #3313 from kevpar/service-restart-delay
Change restart delay for Windows service to 15s
This commit is contained in:
commit
1c5b384b30
@ -270,8 +270,8 @@ func registerService() error {
|
|||||||
Delay uint32
|
Delay uint32
|
||||||
}
|
}
|
||||||
t := []scAction{
|
t := []scAction{
|
||||||
{Type: scActionRestart, Delay: uint32(60 * time.Second / time.Millisecond)},
|
{Type: scActionRestart, Delay: uint32(15 * time.Second / time.Millisecond)},
|
||||||
{Type: scActionRestart, Delay: uint32(60 * time.Second / time.Millisecond)},
|
{Type: scActionRestart, Delay: uint32(15 * time.Second / time.Millisecond)},
|
||||||
{Type: scActionNone},
|
{Type: scActionNone},
|
||||||
}
|
}
|
||||||
lpInfo := serviceFailureActions{ResetPeriod: uint32(24 * time.Hour / time.Second), ActionsCount: uint32(3), Actions: uintptr(unsafe.Pointer(&t[0]))}
|
lpInfo := serviceFailureActions{ResetPeriod: uint32(24 * time.Hour / time.Second), ActionsCount: uint32(3), Actions: uintptr(unsafe.Pointer(&t[0]))}
|
||||||
|
Loading…
Reference in New Issue
Block a user