Pf-restart-command


#1

Hi folks,
working through channel manager config on a MultiTechConduit, most everything is going but got stuck with passing args to the pf-restart-command parameter. (consequently that command fails).

Command line testing (excluding all the other params for clarity’s sake):

  lora-channel-manager ...  --pf-restart-command "/etc/init.d/lora-packet-forwarder restart"

I get:

invoking packet-forwarder restart command args=[] cmd="/etc/init.d/lora-packet-forwarder"
update config error: invoke packet-forwarder restart error: execute command error: exit status 1

so it is catching the command ok - but nothing in args. I’m assuming there is either another environment value to set OR some syntax I’m not aware of to add the argument.

Cheers
Vince

p.s.
As a work around I’ve created a pf_restart_command.sh bash script which achieves the same thing. A bit nasty - but it works. I’d still like to know how to pass args to the command tho.

Rgds
Vince.


#2

If you don’t mind waiting a couple of days, I’m currently refactoring the gateway configuration and this will become (an optional) part of LoRa Gateway Bridge :slight_smile:


#3

Great stuff. Not holding me up anyhow as I have a work-around.