diff options
author | Jason Reiss <jreiss@multitech.com> | 2018-11-06 14:23:38 -0600 |
---|---|---|
committer | Jason Reiss <jreiss@multitech.com> | 2018-11-06 14:23:38 -0600 |
commit | f74209ba18fc80288ab07b7bc8be9431dfad60ee (patch) | |
tree | 30e6dff8d4f63dfce7827db488a71b9919c73d72 /recipes-connectivity/lora | |
parent | 59655cc5f8ed4c95edd8ce46208f429188eb0852 (diff) | |
download | meta-mlinux-atmel-f74209ba18fc80288ab07b7bc8be9431dfad60ee.tar.gz meta-mlinux-atmel-f74209ba18fc80288ab07b7bc8be9431dfad60ee.tar.bz2 meta-mlinux-atmel-f74209ba18fc80288ab07b7bc8be9431dfad60ee.zip |
lora: turn-off default packet forwarder logging, does not work with logrotate
Diffstat (limited to 'recipes-connectivity/lora')
3 files changed, 5 insertions, 2 deletions
diff --git a/recipes-connectivity/lora/lora-logging/lora-logging.logrotate.conf b/recipes-connectivity/lora/lora-logging/lora-logging.logrotate.conf index 01a1cc0..f425c00 100644 --- a/recipes-connectivity/lora/lora-logging/lora-logging.logrotate.conf +++ b/recipes-connectivity/lora/lora-logging/lora-logging.logrotate.conf @@ -4,4 +4,7 @@ compress copytruncate missingok + postrotate + killall -SIGHUP lora-network-server + endscript } 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 2009fd8..a55be0b 100755 --- a/recipes-connectivity/lora/lora-network-server/lora-network-server.init +++ b/recipes-connectivity/lora/lora-network-server/lora-network-server.init @@ -125,7 +125,7 @@ do_start() { # start packet forwarder /usr/sbin/start-stop-daemon --chdir $run_dir/1 --background --start --make-pidfile \ - --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $pkt_fwd &>$pkt_fwd_log" + --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $pkt_fwd " renice -n -20 -p $(pgrep lora-network-se) renice -n -20 -p $(pgrep $(basename $pkt_fwd)) 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 4780da6..99463f6 100755 --- a/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init +++ b/recipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init @@ -195,7 +195,7 @@ 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 $pkt_fwd $pkt_fwd_options &>$pkt_fwd_log" + --pidfile $pkt_fwd_pidfile --startas /bin/bash -- -c "exec $pkt_fwd $pkt_fwd_options" renice -n -20 -p $(pgrep $(basename $pkt_fwd)) |