Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mqtt plugin question
#2
Assuming you are running both mosquitto and SIP on the same Pi and using system.d unit files to start both programs you should be able to edit the unit file for sip (/etc/systemd/system/sip.system) and set mosquitto as a dependency.

e.g. add a line like:
After=mosquitto.target

near the top of the sip.service unit file.

The idea is to set the boot order so that mosquitto starts before SIP does during a restart of the system. I think that may eliminate the problem.

There is an answer to a similar question here:
https://serverfault.com/questions/482730...boot-order

This link may be even more helpful:
https://fedoramagazine.org/systemd-unit-...and-order/


I have not tested this but I think it could work. If you try it, let us know your result.

Dan
Reply


Messages In This Thread
mqtt plugin question - by astrogerard - 2017 May 21, 07:26 PM
RE: mqtt plugin question - by dan - 2017 May 21, 09:25 PM
RE: mqtt plugin question - by astrogerard - 2017 May 22, 11:23 AM
RE: mqtt plugin question - by dan - 2017 May 22, 08:24 PM
RE: mqtt plugin question - by astrogerard - 2018 Jan 04, 07:59 PM
RE: mqtt plugin question - by dmonty - 2018 Jan 11, 08:01 AM
RE: mqtt plugin question - by dan - 2018 Jan 05, 02:03 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 05, 08:50 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 17, 07:13 PM
RE: mqtt plugin question - by dan - 2018 Jan 18, 02:51 AM
RE: mqtt plugin question - by dmonty - 2018 Jan 18, 07:00 AM
RE: mqtt plugin question - by astrogerard - 2018 Jan 22, 03:35 PM
RE: mqtt plugin question - by dmonty - 2018 Jan 18, 08:44 AM
RE: mqtt plugin question - by dan - 2018 Jan 18, 05:24 PM
RE: mqtt plugin question - by dan - 2018 Jan 23, 03:35 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)