Jellyfin Forum
Uploaded some helper scripts to github - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic)
+--- Forum: General Discussion (https://forum.jellyfin.org/f-general-discussion)
+--- Thread: Uploaded some helper scripts to github (/t-uploaded-some-helper-scripts-to-github)



Uploaded some helper scripts to github - cashewtree - 2024-01-09

I needed to create a few scripts to allow Jellyfin to reliably startup on my MacOS machine. I'm not one for developing a lot, but I have enough experience to know that the details such as this can really hold up a project.

These scripts:

1.) Ensure the drive at /Volumes/EXTHDD is mounted before jellyfin is kicked off
2.) Try repeatedly to mount the media media partition based on an fstab UUID entry 
3.) Poll the web interface every five minutes, which seems to prevent lock up, but if it does timeout it uses launchctl to restart jellyfin.


https://github.com/allanpeda/jellyfin-helper-scripts/tree/main


RE: Uploaded some helper scripts to github - TheDreadPirate - 2024-01-09

(2024-01-09, 01:19 AM)cashewtree Wrote: 3.) Poll the web interface every five minutes, which seems to prevent lock up, but if it does timeout it uses launchctl to restart jellyfin.

Can you explain this one a bit?  Does your setup lock up when idle for too long?


RE: Uploaded some helper scripts to github - cashewtree - 2024-01-09

Yes, it did seem to be doing that (I'd connect and refresh wouldn't work). My however primary concern was the initial race between mounting the hard drive and starting the Jellyfin server. Since the SSD is seen as a plug in USB device, it only mounted when I logged in at a desktop session, and that's simply not the intended use case.

I have been running for about 48 hours now and the PIDs are the same, which means nothing has restarted, so polling every five minutes with curl either helps or there was another transient issue that is gone.


RE: Uploaded some helper scripts to github - TheDreadPirate - 2024-01-09

Do you happen to still have logs from when this happened?


RE: Uploaded some helper scripts to github - cashewtree - 2024-01-09

When I have a chance, I'll turn off the periodic curl call and look again.