mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Change service shutdown timeouts
Windows default for stopping a service is 30 seconds. This changes the default timeouts for the salt-minion service to more closely resemble how it is handled in Windows. This gives Python a chance to cleanly exit before being forcibly closed.
This commit is contained in:
parent
4456f7383d
commit
a3becf8342
@ -383,6 +383,8 @@ Section -Post
|
||||
nsExec::Exec "nssm.exe set salt-minion Description Salt Minion from saltstack.com"
|
||||
nsExec::Exec "nssm.exe set salt-minion Start SERVICE_AUTO_START"
|
||||
nsExec::Exec "nssm.exe set salt-minion AppNoConsole 1"
|
||||
nsExec::Exec "nssm.exe set salt-minion AppStopMethodConsole 24000"
|
||||
nsExec::Exec "nssm.exe set salt-minion AppStopMethodWindow 2000"
|
||||
|
||||
RMDir /R "$INSTDIR\var\cache\salt" ; removing cache from old version
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user