sx1302_hal/tools/systemd
Michael Coracin 81e748c904 v1.0.4
* Added missing LICENSE.TXT file
* HAL & Packet Forwarder: added support for sx1250-based reference design for
CN490 region
* Packet Forwarder: disabled beaconing by default
2019-11-22 16:08:34 +01:00
..
lora_pkt_fwd.conf v1.0.2 2019-08-29 15:05:55 +02:00
lora_pkt_fwd.service v1.0.4 2019-11-22 16:08:34 +01:00
readme.md v1.0.2 2019-08-29 15:05:55 +02:00

 / _____)             _              | |
( (____  _____ ____ _| |_ _____  ____| |__
 \____ \| ___ |    (_   _) ___ |/ ___)  _ \
 _____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
  (C)2019 Semtech

How to auto-start the with systemd

Create a new systemd service

Update the lora_pkt_fwd.service file with proper paths and options, then

sudo cp lora_pkt_fwd.service /etc/systemd/system

Enable the service for autostart with

sudo systemctl daemon-reload
sudo systemctl enable lora_pkt_fwd.service
sudo reboot

The following commands to disable the service, manually start/stop it:

sudo systemctl disable lora_pkt_fwd.service
sudo systemctl start lora_pkt_fwd.service
sudo systemctl stop lora_pkt_fwd.service

Configure rsyslog to redirect the packet forwarder logs into a dedicated file

sudo cp lora_pkt_fwd.conf /etc/rsyslog.d
sudo systemctl restart rsyslog

See the logs

sudo journalctl -u lora_pkt_fwd -f

or

cat /var/log/lora_pkt_fwd.log