Loraserver and Lora-app-server booting without custom config with systemctl

Hi,

First of all I would like to thank you for the amazing work you have accomplished here. Not only this seems to just work but I also find the design to be extremely clean an aesthetically pleasing.

I have everything working so far, which is:
HW : RPi 3 + RAK831
SW: Loraserver + Lora-app-server on RPi 3 + currently looking at embedding AWS Greengrass for some post-processing of packets at the edge (I had to change some ports due to some conflicts, as 8000 was being used by GG, it took a bit of fiddling time).

The main issue I am facing at the moment is that after startup, the server + app server will fallback to the default settings, they won’t load my custom *.toml config files unless I run the processes manually with the -c flag.

I just wanted to know if there is a readily available solution to this problem before I write my own service or find a workaround.

EDIT: This is the closest reference I have found to this issue : https://github.com/brocaar/loraserver/issues/104 .

Cheers!

Thanks!

With regards to your question, please see: https://www.loraserver.io/install/configuration/. You need to put your config under /etc/NAME/NAME.toml (where NAME is for example loraserver). Also make sure that the file permissions are set correctly.

1 Like

That’s it! Having the *.toml under /home/pi/.config did not seem to cut it but under /etc it works.

Thanks!

1 Like