Jellyfin quits unexpectedly


I periodically find that Jellyfin isn’t working properly after my NAS restarts in the morning. When this happens I usually see a system notifications saying that Jellyfin quit unexpectedly. I haven’t been able to determine the cause of this, but I was wondering if there is some way to set up a “triggered tasK” to detect when Jellyfin quits and then restart it?

I haven’t been able to find a way to determine if a system notification has occurred in order to run a restart script. Does anyone know of a good technique for detecting system events and then executing a script?