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 <[email protected]> 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 <[email protected]> on
> behalf of Luveh Keraph <[email protected]>
> *Sent:* Friday, 05 June 2026 16:17:21
> *To:* SlackBuilds.org Users List <[email protected]>
> *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 <[email protected]> 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
> [email protected]
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
_______________________________________________
SlackBuilds-users mailing list
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to