Open vikgir2 opened 2 months ago
use a systemd
# /etc/systemd/system/lora-fwd
[Unit]
Description=Lora Forwarder
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/home/pi/sx1302_hal/bin/lora_pkt_fwd
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable lora-fwd.service
sudo systemctl start lora-fwd.service
I have issue. Cannot to start LoRa gateway work automatically after powering it up. Do you have any recommendations how to do auto start for this code?