summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Reiss <jreiss@multitech.com>2018-11-06 14:23:38 -0600
committerJason Reiss <jreiss@multitech.com>2018-11-06 14:23:38 -0600
commitf74209ba18fc80288ab07b7bc8be9431dfad60ee (patch)
tree30e6dff8d4f63dfce7827db488a71b9919c73d72
parent59655cc5f8ed4c95edd8ce46208f429188eb0852 (diff)
downloadmeta-mlinux-f74209ba18fc80288ab07b7bc8be9431dfad60ee.tar.gz
meta-mlinux-f74209ba18fc80288ab07b7bc8be9431dfad60ee.tar.bz2
meta-mlinux-f74209ba18fc80288ab07b7bc8be9431dfad60ee.zip
lora: turn-off default packet forwarder logging, does not work with logrotate
-rw-r--r--recipes-connectivity/lora/lora-logging/lora-logging.logrotate.conf3
-rwxr-xr-xrecipes-connectivity/lora/lora-network-server/lora-network-server.init2
-rwxr-xr-xrecipes-connectivity/lora/lora-packet-forwarder/lora-packet-forwarder.init2
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))