profiles: prpl: logrotate configuration is moved to tr181-syslog
- Remove syslog-ng config option that creates a logrotate conf. This option was causing a duplicate config error in syslog. - Remove the script from base-files that adds logrotate cron job. - Add logrotate package. It was selected by the removed config options before. - Adapt logrotate test to include separated logs Signed-off-by: Yüce Kürüm <yuce.kurum@mind.be> Signed-off-by: Yüce Kürüm <yuce.kurum_ext@softathome.com> (cherry picked from commit c13ed76075b78604eb21213e1842465cea35f3ea)
This commit is contained in:
parent
a082347097
commit
a8d9902bbd
@ -7,7 +7,12 @@ Check that logrotate is properly setup:
|
||||
$ R "/usr/sbin/logrotate /etc/logrotate.conf"
|
||||
|
||||
$ R 'grep /var/log/messages /var/lib/logrotate.status | cut -d\" -f2'
|
||||
/var/log/messages_wifi
|
||||
/var/log/messages_lcm.log
|
||||
/var/log/messages_syslog
|
||||
/var/log/messages_dhcp
|
||||
/var/log/messages
|
||||
/var/log/messages_firewall
|
||||
|
||||
$ R "grep /usr/sbin/logrotate /etc/crontabs/root"
|
||||
*/10 * * * * /usr/sbin/logrotate /etc/logrotate.conf
|
||||
|
||||
@ -1,4 +0,0 @@
|
||||
grep -s -q /usr/sbin/logrotate /etc/crontabs/root && exit 0
|
||||
echo "# logrotate runs every 10 minutes" >> /etc/crontabs/root
|
||||
echo "*/10 * * * * /usr/sbin/logrotate /etc/logrotate.conf" >> /etc/crontabs/root
|
||||
exit 0
|
||||
@ -174,8 +174,7 @@ diffconfig: |
|
||||
CONFIG_PACKAGE_rpcd-mod-luci=y
|
||||
CONFIG_PACKAGE_ip-full=y
|
||||
CONFIG_PACKAGE_ip-bridge=y
|
||||
CONFIG_SYSLOGNG_LOGROTATE=y
|
||||
CONFIG_SYSLOGNG_LOGROTATE_MAXSIZE="5M"
|
||||
CONFIG_PACKAGE_logrotate=y
|
||||
CONFIG_PACKAGE_mod-xpon-prpl-mock=m
|
||||
# CONFIG_PACKAGE_firewall4 is not set
|
||||
# CONFIG_PACKAGE_logd is not set
|
||||
|
||||
Loading…
Reference in New Issue
Block a user