From 2a6b87d80e16d9964bb9231c0af2357381aa56ff Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Wed, 26 Apr 2023 14:06:18 -0500 Subject: Revert "Added angel process to lns and pkf" This reverts commit de6267995788dc15f6551998deabc4e9c0b08b67. --- .../lora/lora-packet-forwarder/lora-packet-forwarder.init | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'recipes-connectivity/lora/lora-packet-forwarder') diff --git a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init index 904737d..6320d2a 100755 --- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init +++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init @@ -4,7 +4,6 @@ NAME="lora-packet-forwarder" LOCK="/var/lock/$NAME" ENABLED="yes" -angel=/sbin/angel [ -f /etc/default/$NAME ] && source /etc/default/$NAME @@ -417,17 +416,18 @@ do_start() { echo -n "Starting $NAME: " /usr/sbin/start-stop-daemon --chdir $run_dir/1 --background --start --make-pidfile \ - --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $angel $pkt_fwd $pkt_fwd_options -l $pkt_fwd_log" + --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $pkt_fwd $pkt_fwd_options -l $pkt_fwd_log" if [ "$dual_cards_installed" == "true" ]; then /usr/sbin/start-stop-daemon --chdir $run_dir/2 --start --background --make-pidfile \ --pidfile $pkt_fwd_2_pidfile --startas /bin/bash \ - -- -c "exec $angel $pkt_fwd_2 $pkt_fwd_options -l $pkt_fwd_2_log" + -- -c "exec $pkt_fwd_2 $pkt_fwd_options -l $pkt_fwd_2_log" fi - renice -n -20 -p $(ps aux | grep angel | grep $(basename $pkt_fwd) | awk '{print $2}') &>/dev/null - renice -n -20 -p $(pgrep $(basename $pkt_fwd)) &>/dev/null + if [[ ! "$hw_id" =~ "$mtcdt3_id" ]]; then + renice -n -20 -p $(pgrep $(basename $pkt_fwd)) + fi echo "OK" } -- cgit v1.2.3