10948 questions

13055 answers

20356 comments

27889 members

0 votes
77 views 2 comments
by

Hello, How can i run mosquitto.conf on rut240 startup ? 

by
I have tried with crontab but I don't know what I am doing wrong, I made a script that should be executed at startup
by

this is the script 

and crontab

1 Answer

0 votes
by

Hello, 

If you just want to start mosquitto from a router reboot. You can use the command @Reboot /etc/init.d/mosquitto -p port number to use. You would not need another script to do this. 

If you want to modify the mosquitto default configuration, you can access the file through the path /etc/mosquitto/mosquitto.conf ,and enable this preference with the @Reboot /etc/init.d/mosquitto -c /etc/mosquitto/mosquitto.conf command.