Currently I am running using command php arisan start.listening.mqtt
.
However, it will be killed if no more active on the screen.
So can any one suggest a better way for 2 objective
- Run the MQTT listener as background process through Laravel code
- When the server reboot, it is started automatically.
Currenly I am using AWS Ubuntu server to run Mosquitto