Jellyfin Forum
v10.10 service will not background on linux - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: v10.10 service will not background on linux (/t-v10-10-service-will-not-background-on-linux)



v10.10 service will not background on linux - yellowbean - 2024-12-08

Hi, just thought I'd post here in case anyone else had this issue when upgrading to v10.10.  This is for the generic portable linux installation...also this is for distros without systemd (I use Devuan).

For me anyway, jellyfin server v10.8 and v10.9 could be backgrounded by running the start script like this: 

./jellyfin.sh > jelly.log &

I am using the '--service' flag but I don't think it matters either way. 

Anyway, I upgraded to v10.10 and it would not start in the background using this same script as previous versions.  It would stop here (according to the log):

[16:02:34] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds

Now, if I just run the start script in the foreground without '> jelly.log &' it will start up just fine.  Albeit in the foreground...so I have to leave the terminal session open to keep jellyfin running.  I know I could use screen or something but that's less convenient.  

Running the start script in the background with strace I get this:

[16:02:34] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 0 seconds
0x7ffd22ce85e0, 0, NULL)      = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGTTOU {si_signo=SIGTTOU, si_code=SI_KERNEL} ---
--- stopped by SIGTTOU ---

Some internet searching I found this work around, which let's me background the server just fine:

bash -c "./start_jellyfin.sh > jelly.log &"

Not sure what changed between v10.9 and v10.10 to change this behavior.


RE: v10.10 service will not background on linux - gnattu - 2024-12-09

If my theory is correct you need to redirect both stdout and stderr to prevent sigtou being sent to jellyfin in the background and your old command did not redirect stderr