summaryrefslogtreecommitdiff
path: root/recipes-connectivity/lora/lora-network-server
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2016-01-19 07:49:44 -0600
committerJason Reiss <jreiss@multitech.com>2016-01-19 07:49:44 -0600
commit34a89afbcf1fe2b2e6d1c57a81f2be6056fbbf60 (patch)
treed37bd65f4c4c5a98f87c4d44aaa06fe4dde092b4 /recipes-connectivity/lora/lora-network-server
parent1452d201970d4d65b88ce260fc00a3fd4ca91432 (diff)
downloadmeta-mlinux-34a89afbcf1fe2b2e6d1c57a81f2be6056fbbf60.tar.gz
meta-mlinux-34a89afbcf1fe2b2e6d1c57a81f2be6056fbbf60.tar.bz2
meta-mlinux-34a89afbcf1fe2b2e6d1c57a81f2be6056fbbf60.zip
lora: increase priority for network-server and packet-forwarder processes
Diffstat (limited to 'recipes-connectivity/lora/lora-network-server')
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init4
1 files changed, 4 insertions, 0 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 0262aba..bf88f77 100755
--- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init
+++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init
@@ -63,6 +63,10 @@ do_start() {
start-stop-daemon --start --background --make-pidfile \
--pidfile $pkt_fwd_pidfile --exec $pkt_fwd -- \
-c $run_dir/1 -l $pkt_fwd_log
+
+ renice -n -20 -p $(pgrep lora-network-se)
+ renice -n -20 -p $(pgrep $(basename $pkt_fwd))
+
echo "OK"
}