[Slackbuilds-users] Jellyfin problem

Luveh Keraph 1.41421 at gmail.com
Fri Jun 5 21:17:19 UTC 2026


Thanks. I have just tested and if the -u option is inserted between daemon
and --name then it works. Would this not be something that ought to be
changed in the rc.jellyfin file installed by the SlackBuilds installer?

On Fri, Jun 5, 2026 at 3:04 PM Alexander Grotewohl <alex at dcclost.com> wrote:

> 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> 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.
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20260605/6b7894d2/attachment.htm>


More information about the SlackBuilds-users mailing list