summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-network-server
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server')
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-connectivity/lora/lora-network-server/lora-network-server.init b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
index 099da38..0262aba 100755
--- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init
+++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
@@ -15,8 +15,8 @@ net_server_log=/var/log/lora-network-server.log
net_server_pidfile=$run_dir/$NAME.pid
pkt_fwd=/opt/lora/basic_pkt_fwd
-pkt_fwd_log=/var/log/lora-pkt-fwd.log
-pkt_fwd_pidfile=$run_dir/lora-pkt-fwd.pid
+pkt_fwd_log=/var/log/lora-pkt-fwd-1.log
+pkt_fwd_pidfile=$run_dir/lora-pkt-fwd-1.pid
lora_us_id="MTAC-LORA-915"
lora_eu_id="MTAC-LORA-868"
@@ -52,17 +52,17 @@ do_start() {
fi
echo -n "Starting $NAME: "
- mkdir -p $run_dir
+ mkdir -p $run_dir/1
# start network server
start-stop-daemon --start --background --make-pidfile \
--pidfile $net_server_pidfile --exec $net_server -- \
-c $conf_file --lora-eui $lora_eui --lora-path $run_dir --db $conf_db \
--noconsole -l $net_server_log
- sleep 1
+ sleep 2
# start packet forwarder
start-stop-daemon --start --background --make-pidfile \
--pidfile $pkt_fwd_pidfile --exec $pkt_fwd -- \
- -c $run_dir -l $pkt_fwd_log
+ -c $run_dir/1 -l $pkt_fwd_log
echo "OK"
}