Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2021 16:48:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 258089] net/mosquitto: ignores mosquitto_pidfile set in /etc/rc.conf
Message-ID:  <bug-258089-7788-Hm0KOHHUhE@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258089-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258089-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258089

--- Comment #1 from Dan Langille <dvl@FreeBSD.org> ---
The fix is to move "load_rc_config $name" before the variable assignments.

Credit to jrm via IRC and eborisch via Twitter for this.

[dan@gelt:/usr/local/etc/rc.d] $ diff -ruN mosquitto mosquitto.mine
--- mosquitto   2021-08-22 04:34:48.000000000 +0000
+++ mosquitto.mine      2021-08-27 16:45:52.963755000 +0000
@@ -19,6 +19,7 @@
 name=3Dmosquitto
 rcvar=3Dmosquitto_enable

+load_rc_config $name
 mosquitto_enable=3D${mosquitto_enable:=3D"NO"}

mosquitto_config=3D${mosquitto_config:=3D"/usr/local/etc/mosquitto/mosquitt=
o.conf"}
 mosquitto_user=3D${mosquitto_user:=3D"nobody"}
@@ -40,5 +41,10 @@
        install -o ${mosquitto_user} -m 644 /dev/null ${pidfile}
 }

-load_rc_config $name
+echo mosquitto_enable=3D$mosquitto_enable
+echo mosquitto_config=3D$mosquitto_config
+echo mosquitto_user=3D$mosquitto_user
+echo mosquitto_pidfile=3D$mosquitto_pidfile
+echo pidfile=3D$pidfile
+
 run_rc_command "$1"
[dan@gelt:/usr/local/etc/rc.d] $

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258089-7788-Hm0KOHHUhE>