2024-05-16, 07:24 PM
(This post was last modified: 2024-05-16, 07:26 PM by wanderman. Edited 1 time in total.)
Ok thanks for the response. I was asking as i had problems with my old setup of shutting down the tray exe & jellyfin exe to be able to run a backup task. My old method seems to be broken since 1.9. as im no more able to properly kill both exes, either by normal or forced kill. One of both always keeps running.
However i found a solution, might help someone in the future. Im running a nightly FreeFileSync Backup for my database, thats why i need jellyfin stopped to not get corrupted files into the backup folder. The following is my Windows batch.
The Batch as well as FreeFileSync is started by using the Windows Task Scheduler
Shutdown via api call - short timer while FreeFileSync is running - Restarting
However i found a solution, might help someone in the future. Im running a nightly FreeFileSync Backup for my database, thats why i need jellyfin stopped to not get corrupted files into the backup folder. The following is my Windows batch.
The Batch as well as FreeFileSync is started by using the Windows Task Scheduler
Shutdown via api call - short timer while FreeFileSync is running - Restarting
Code:
curl "http://192.168.178.71:8096/System/Shutdown" -X POST -H "X-Emby-Token: #####APIKEY####"
TIMEOUT /T 1140 /NOBREAK
start C:\"Program Files"\Jellyfin\Server\Jellyfin.exe