[Slackbuilds-users] Jellyfin problem

Alexander Grotewohl alex at dcclost.com
Fri Jun 5 21:04:14 UTC 2026


I emailed the maintainer of this slackbuild recently.

-u is a parameter for "daemon" not for jellyfin. if you try to run as the user jellyfin in this case jellyfin will also need to own a directory for it's pid file and the script should be adjusted further.

________________________________
From: SlackBuilds-users <slackbuilds-users-bounces at slackbuilds.org> on behalf of Luveh Keraph <1.41421 at gmail.com>
Sent: Friday, 05 June 2026 16:17:21
To: SlackBuilds.org Users List <slackbuilds-users at slackbuilds.org>
Subject: Re: [Slackbuilds-users] Jellyfin problem

I forgot to write 'is executed' at the end of 'USER is set to root, and therefore the else block of the conditional'.

On Fri, Jun 5, 2026 at 2:15 PM Luveh Keraph <1.41421 at gmail.com<mailto:1.41421 at gmail.com>> wrote:
This is something that I noticed quite a while ago, but forgot to report. But, since it has bitten me again today, I think it is high time I reported it.

The /etc/rc.d/rc.jellyfin file contains (among other things) the following function:

start() {
if [ -x /opt/jellyfin/jellyfin/jellyfin ]; then
        if [ "$USER" = "" ]; then
                echo "Starting Jellyfin Media Server"
                /usr/bin/daemon --name=jellyfin --pidfile=/var/run/jellyfin.pid
-- \
                /opt/jellyfin/jellyfin/jellyfin \
                -d $DATADIR \
                -C $CACHEDIR \
                -c $CONFIGDIR \
                -l $LOGDIR
        else
                echo "Starting Jellyfin Media Server"
                /usr/bin/daemon --name=jellyfin --pidfile=/var/run/jellyfin.pid
-- \
                /opt/jellyfin/jellyfin/jellyfin \
                -d $DATADIR \
                -C $CACHEDIR \
                -c $CONFIGDIR \
                -l $LOGDIR \
                -u $USER:$GROUP
        fi
fi
}

When I launch this by hand from the command line as

   # /etc/rc.d/rc.jellyfin start

USER is set to root, and therefore the else block of the conditional. When this happens the Jellyfin daemon won't start. Even more. nothing appears in its log file as a result. I notice that GROUP is not set, but setting to it root by hand makes no difference.

The only way I have been able to get the Jellyfin daemon to start is to remove that -u $USER:GROUP line - effectively rendering the conditional useless. I am not aware of any tweaks to my Jellyfin or root environments that could account for this, and I have no clue why things don't work for me with that -u line.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20260605/2819b4e4/attachment-0001.htm>


More information about the SlackBuilds-users mailing list