<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(33, 33, 33);" dir="auto">
I emailed the maintainer of this slackbuild recently.</div>
<div style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(33, 33, 33);" dir="auto">
<br>
</div>
<div style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(33, 33, 33);" dir="auto">
-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.</div>
<div id="ms-outlook-mobile-body-separator-line" data-applydefaultfontstyles="true" dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<div style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> SlackBuilds-users <slackbuilds-users-bounces@slackbuilds.org> on behalf of Luveh Keraph <1.41421@gmail.com><br>
<b>Sent:</b> Friday, 05 June 2026 16:17:21<br>
<b>To:</b> SlackBuilds.org Users List <slackbuilds-users@slackbuilds.org><br>
<b>Subject:</b> Re: [Slackbuilds-users] Jellyfin problem</font>
<div> </div>
</div>
<div>
<div dir="ltr">I forgot to write 'is executed' at the end of 'USER is set to root, and therefore the else block of the conditional'.</div>
<br>
<div class="x_gmail_quote x_gmail_quote_container">
<div dir="ltr" class="x_gmail_attr">On Fri, Jun 5, 2026 at 2:15 PM Luveh Keraph <<a href="mailto:1.41421@gmail.com">1.41421@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">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.
<div><br>
</div>
<div>The /etc/rc.d/rc.jellyfin file contains (among other things) the following function:</div>
<div><br>
</div>
<div>start() {<br>
if [ -x /opt/jellyfin/jellyfin/jellyfin ]; then<br>
        if [ "$USER" = "" ]; then<br>
                echo "Starting Jellyfin Media Server"<br>
                /usr/bin/daemon --name=jellyfin --pidfile=/var/run/jellyfin.pid<br>
-- \<br>
                /opt/jellyfin/jellyfin/jellyfin \<br>
                -d $DATADIR \<br>
                -C $CACHEDIR \<br>
                -c $CONFIGDIR \<br>
                -l $LOGDIR<br>
        else<br>
                echo "Starting Jellyfin Media Server"<br>
                /usr/bin/daemon --name=jellyfin --pidfile=/var/run/jellyfin.pid<br>
-- \<br>
                /opt/jellyfin/jellyfin/jellyfin \<br>
                -d $DATADIR \<br>
                -C $CACHEDIR \<br>
                -c $CONFIGDIR \<br>
                -l $LOGDIR \<br>
                -u $USER:$GROUP<br>
        fi<br>
fi<br>
}<br>
</div>
<div><br>
</div>
<div>When I launch this by hand from the command line as </div>
<div><br>
</div>
<div>   # /etc/rc.d/rc.jellyfin start</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>