Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3441

General Questions • service not running command?

$
0
0
Hello I am using an RPi5 [Debian 12 - Bookworm].
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.json
When I first reload the daemon then run the service :

Code:

sudo systemctl daemon-reloadsudo systemctl start lora_pkt_fwd.service
it immediately returns to the prompt

yet when I go into the binary folder (/etc/local/bin) and enter

Code:

lora_pkt_fwd -c /etc/lora_pkt_fwd/global_conf.json
the 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

Statistics: Posted by ridgerunnersjw — 2024-06-20 17:51 — Replies 1 — Views 43



Viewing all articles
Browse latest Browse all 3441

Trending Articles