Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2021 15:12:47 +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@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 258089
           Summary: net/mosquitto: ignores mosquitto_pidfile set in
                    /etc/rc.conf
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: dvl@FreeBSD.org
                CC: joe@thrallingpenguin.com
                CC: joe@thrallingpenguin.com
             Flags: maintainer-feedback?(joe@thrallingpenguin.com)

For demonstration, I added these lines to a fresh install of mosquitto-2.0.=
10_1
on FreeBSD 13.0-RELEASE-p4.

They are placed just before the 'run_rc_command' line in
/usr/local/etc/rc.d/mosquitto :

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

I am running with this configuration:

$ grep mosq /etc/rc.conf
mosquitto_enable=3D"YES"
mosquitto_user=3D"mosquitto"
mosquitto_pidfile=3D"/var/run/mosquitto/mosquitto.pid"


$ sudo service mosquitto start
mosquitto_enable=3DYES
mosquitto_config=3D/usr/local/etc/mosquitto/mosquitto.conf
mosquitto_user=3Dmosquitto
mosquitto_pidfile=3D/var/run/mosquitto/mosquitto.pid
pidfile=3D/var/run/mosquitto.pid
Starting mosquitto.

NOTE how pidfile has the wrong value but mosquitto_pidfile does.

Both files are created, but only one is correct.

$ sudo ls -l /var/run/mosquitto/mosquitto.pid /var/run/mosquitto.pid
-rw-r--r--  1 mosquitto  wheel      0 Aug 27 15:10 /var/run/mosquitto.pid
-rw-r--r--  1 mosquitto  mosquitto  5 Aug 27 15:10
/var/run/mosquitto/mosquitto.pid
Clearly, the value for mosquitto_pidfile is not being picked up from
/etc/rc.conf

I'm submitting this now and may be able to work on finding a solution soon.

--=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>