mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-20 15:54:38 +00:00
Change the default AppExit action to Exit
When the service should fail to launch Jellyfin, or should Jellyfin crash, the default action is changed from Restart to AppExit. This prevents the service from entering a constant restart due to a permissions issue or similar.
This commit is contained in:
parent
94932ea216
commit
14a850b4a8
1 changed files with 9 additions and 0 deletions
|
|
@ -251,6 +251,15 @@ ${If} $_INSTALLSERVICE_ == "Yes" ; Only run this if we're going to install the s
|
|||
${EndIf}
|
||||
DetailPrint "Jellyfin Server service account change, $0"
|
||||
${EndIf}
|
||||
|
||||
Sleep 3000
|
||||
ConfigureDefaultAppExit:
|
||||
ExecWait '"$INSTDIR\nssm.exe" set JellyfinServer AppExit Default Exit' $0
|
||||
${If} $0 <> 0
|
||||
!insertmacro ShowError "Could not configure the Jellyfin Server service app exit action." ConfigureDefaultAppExit
|
||||
${EndIf}
|
||||
DetailPrint "Jellyfin Server service exit action set, $0"
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
SectionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue