Hello I am using an RPi5 [Debian 12 - Bookworm].
I have a service created in /etc/systemd/system with the following lines:
When I first reload the daemon then run the service :
it immediately returns to the prompt
yet when I go into the binary folder (/etc/local/bin) and enterthe code runs.
AND if I go to /etc/lora_pkt_fwd and copy the ExecStart line above the code runs also.
Questions:
1. What do I need to do with the .service file to make this work?
2. What can I do to make it a daemon so that it runs in the background?
Thanks
I have a service created in /etc/systemd/system with the following lines:
Code:
WorkingDirectory=/etc/lora_pkt_fwdExecStart=/usr/local/bin/lora_pkt_fwd -c ./global_conf.jsonCode:
sudo systemctl daemon-reloadsudo systemctl start lora_pkt_fwd.serviceyet when I go into the binary folder (/etc/local/bin) and enter
Code:
lora_pkt_fwd -c /etc/lora_pkt_fwd/global_conf.jsonAND if I go to /etc/lora_pkt_fwd and copy the ExecStart line above the code runs also.
Questions:
1. What do I need to do with the .service file to make this work?
2. What can I do to make it a daemon so that it runs in the background?
Thanks
Statistics: Posted by ridgerunnersjw — 2024-06-20 17:51 — Replies 1 — Views 43