2024-06-10, 08:10 PM
(This post was last modified: 2024-06-10, 08:11 PM by TheDreadPirate. Edited 2 times in total.)
You're not making a jellyfin.service.conf file. RequiresMountsFor goes into jellyfin.service itself.
If this happens SOMETIMES on reboot, this 100% sounds like the post I linked. Jellyfin is sometimes starting before the SMB share mounts.
Put RequiresMountFor in /etc/systemd/system/jellyfin.service.d/jellyfin.service directly.
If this happens SOMETIMES on reboot, this 100% sounds like the post I linked. Jellyfin is sometimes starting before the SMB share mounts.
Put RequiresMountFor in /etc/systemd/system/jellyfin.service.d/jellyfin.service directly.
Code:
[Unit]
Description = Jellyfin Media Server
After = network-online.target
[Service]
RequiresMountsFor=/data01/Musik2
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143
[Install]
WantedBy = multi-user.target