I am trying to run a script on start up. The aim is to run an rtl_433 compatible SDR Stick, read data into MQTT and then send it to Home Assistant
If i open the terminal and execute the script everything is fine.
/etc/init.d/mqtt start
However closing the terminal kills the process...
Starting the script manually through LuCI web interface /luci/admin/system/startup - results in failure : XHR request timed out
and enabling script at startup results in boot failure unless i unplug the usb stick.
I did run chmod +x /etc/init.d/mqtt. Could some one help me to find the problem?
This worked, process stays after closing the terminal
-Thanks!
However, best thing would be, if i could run the command using the init script.
What is the difference in
calling the service in the terminal:
root@OpenWrt_XXX:~# /etc/init.d/mqtt start
no error - everything works fine
call the service via LuCI web interface and start the process by pressing the start button on the page /luci/admin/system/startup? Which results in: XHR request timed out
Start up (when script is enabled): which results in a boot failure