From 659e7860a2933ba35bf73677f4caab0fbbb9e7cb Mon Sep 17 00:00:00 2001 From: cyoung Date: Thu, 17 Jan 2019 17:09:23 -0500 Subject: [PATCH] Don't duplicate gen_gdl90 messages in syslog general log. #765. --- image/rsyslog_d_stratux | 2 ++ selfupdate/makeupdate.sh | 1 + selfupdate/update_footer.sh | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 image/rsyslog_d_stratux diff --git a/image/rsyslog_d_stratux b/image/rsyslog_d_stratux new file mode 100644 index 00000000..1bb85f00 --- /dev/null +++ b/image/rsyslog_d_stratux @@ -0,0 +1,2 @@ +# Ignore gen_gdl90. stratux.log is written directly from the process. +if $programname == 'gen_gdl90' then ~ diff --git a/selfupdate/makeupdate.sh b/selfupdate/makeupdate.sh index 4d6a7fd9..e18fb5a5 100755 --- a/selfupdate/makeupdate.sh +++ b/selfupdate/makeupdate.sh @@ -40,6 +40,7 @@ cp image/dhcpd.conf work/bin/ cp image/interfaces work/bin/ cp image/logrotate.conf work/bin/ cp image/logrotate_d_stratux work/bin/ +cp image/rsyslog_d_stratux work/bin/ cp test-data/ahrs/ahrs_table.log work/bin/ cp ahrs_approx work/bin/ diff --git a/selfupdate/update_footer.sh b/selfupdate/update_footer.sh index ecfb7abb..c69dc76a 100755 --- a/selfupdate/update_footer.sh +++ b/selfupdate/update_footer.sh @@ -23,6 +23,9 @@ ln -fs /lib/systemd/system/stratux.service /etc/systemd/system/multi-user.target cp -f hostapd.conf /etc/hostapd/hostapd.conf cp -f hostapd-edimax.conf /etc/hostapd/hostapd-edimax.conf +#rsyslog config +cp -f rsyslog_d_stratux /etc/rsyslog.d/stratux.conf + #logrotate config cp -f logrotate.conf /etc/logrotate.conf cp -f logrotate_d_stratux /etc/logrotate.d/stratux