diff --git a/image/logrotate_d_stratux b/image/logrotate_d_stratux new file mode 100644 index 00000000..80c7514e --- /dev/null +++ b/image/logrotate_d_stratux @@ -0,0 +1,12 @@ +# Keep 10 days of stratux logfiles. +/var/log/stratux.log +{ + rotate 10 + daily + missingok + notifempty + compress + postrotate + /usr/bin/killall -HUP gen_gdl90 + endscript +} diff --git a/selfupdate/makeupdate.sh b/selfupdate/makeupdate.sh index 8bbe3226..4d6a7fd9 100755 --- a/selfupdate/makeupdate.sh +++ b/selfupdate/makeupdate.sh @@ -38,7 +38,8 @@ cp image/stratux-wifi.sh work/bin/ cp image/rc.local work/bin/ cp image/dhcpd.conf work/bin/ cp image/interfaces work/bin/ -cp image/logrotate.conf work/bin +cp image/logrotate.conf work/bin/ +cp image/logrotate_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 951458d5..ecfb7abb 100755 --- a/selfupdate/update_footer.sh +++ b/selfupdate/update_footer.sh @@ -25,6 +25,7 @@ cp -f hostapd-edimax.conf /etc/hostapd/hostapd-edimax.conf #logrotate config cp -f logrotate.conf /etc/logrotate.conf +cp -f logrotate_d_stratux /etc/logrotate.d/stratux #WiFi Hostapd ver test and hostapd.conf builder script cp -f stratux-wifi.sh /usr/sbin/