[Slackbuilds-users] Jellyfin problem
Luveh Keraph
1.41421 at gmail.com
Fri Jun 5 20:17:21 UTC 2026
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> 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/9f6817fd/attachment.htm>
More information about the SlackBuilds-users
mailing list