Date: Fri, 19 Mar 2021 16:14:25 -0400 From: Dan Langille <dan@langille.org> To: joe@thrallingpenguin.com Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: FreeBSD Port: net/mosquitto pidfile or pid_file Message-ID: <8A3FBDC9-B1F2-41F2-B3EF-187E53AF9F85@langille.org>
next in thread | raw e-mail | index | archive | help
Joe, I updated my mosquitto a few days ago and today it was restarted, but = won't start. I think it's related to the update. Mar 14 01:47:40 supernews pkg[40249]: mosquitto upgraded: 1.6.7_1 -> = 2.0.8 The rc.d sript for net/mosquitto greps for pidfile. re: = https://svnweb.freebsd.org/ports/head/net/mosquitto/files/mosquitto.in?rev= ision=3D481153&view=3Dmarkup#l30 The documentation refers to pid_file, not pidfile. re: http://mosquitto.org/man/mosquitto-conf-5.html I think the rc.d script needs an update. I'd help with a patch, but I = can't get a working solution. $ grep pid /usr/local/etc/rc.d/mosquitto=20 pidfile=3D$(grep pid_file ${mosquitto_config} | awk '{print($2)}') echo "pidfile =3D '$pidfile'" rm -f $pidfile $ sudo service mosquitto start pidfile =3D '/var/run/mosquitto.pid' Starting mosquitto. $ ps auwwx | grep mos dan 20215 0.0 0.0 11404 2260 1 S+ 20:12 0:00.00 = grep mos $=20 $ sudo /usr/local/sbin/mosquitto -c = /usr/local/etc/mosquitto/mosquitto.conf -v 1616184446: Error: Unable to write pid file. $ ls -ld /var/run drwxr-xr-x 15 root wheel 1024 Mar 19 20:12 /var/run $ ls -l /var/run/mosquitto.pid ls: /var/run/mosquitto.pid: No such file or directory =E2=80=94=20 Dan Langille http://langille.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8A3FBDC9-B1F2-41F2-B3EF-187E53AF9F85>