2024-06-15, 02:21 PM
(2024-06-14, 04:00 PM)TheDreadPirate Wrote: How are you starting Jellyfin? Arch uses systemd, right? Are you manually starting jellyfin or using systemctl?
It's supposed to autostart with systemd on boot, but atm i can only get it to run if i manually start it, somehow the original startup-script (copied right from the jellyfin documentation), worked despite trying to access folders that don't even exist..
this is that script:
Code:
#!/bin/bash
JELLYFINDIR="/opt/jellyfin"
FFMPEGDIR="/usr/share/jellyfin-ffmpeg"
$JELLYFINDIR/jellyfin/jellyfin \
-d $JELLYFINDIR/data \
-C $JELLYFINDIR/cache \
-c $JELLYFINDIR/config \
-l $JELLYFINDIR/log \
--ffmpeg $FFMPEGDIR/ffmpeg
Code:
[Unit]
Description=Jellyfin
After=network.target
[Service]
Type=simple
User=youruser
Restart=always
ExecStart=/opt/jellyfin/jellyfin.sh
[Install]
WantedBy=multi-user.target
Code:
[Unit]
Description=Jellyfin
After=network.target
[Service]
Type=simple
User=jellyfin
Restart=always
ExecStart=/var/lib/jellyfin/jellyfin.sh
[Install]
WantedBy=multi-user.target
Code:
#!/bin/bash
JELLYFINDIR="/lib/jellyfin"
FFMPEGDIR="/usr/share"
jellyfin \
-w /usr/lib/jellyfin/jellyfin-web/web \
--ffmpeg $FFMPEGDIR/ffmpeg
Server specs: i5 7600K (4c/4t@4.5GHz); GTX 1050ti; 2TB HDD; 8GB DDR4; MSI Z270; Arch Linux; "Jellytem"; old gaming PC