This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/files/build_templates
Joe LeVeque 9d5adb993a [System logs]: Improvements to prevent filling /var/log partition (#865)
- Force log rotation at size thresholds only (no longer also rotating logs daily), allowing for more consistent archived log size
- Eliminate remaining duplicate log messages
- Cron facility now only logs to cron.log (was also logging to syslog)
- Debug, mail, news and user log facilities only log to syslog; no longer creating separate log files for these facilities
- Cron job that calls logrotate every minute now uses the main /etc/logrotate.conf file so as to check/rotate all logs every minute, not just the logs specified in the rsyslog file. Also redirecting output of this command to /dev/null to prevent "(CRON) info (No MTA installed, discarding output)" messages in cron.log due to lack of a mail service
- Delete archive files based on remaining /var/log partition space. Note that this solution currently requires a minimum /var/log partition size of 32MB to function correctly
- Update sonic-sairedis and sonic-swss submodules to incorporate recording file name changes
- Add .screen file to .gitignore (unrelated)
2017-08-10 16:24:57 -07:00
..
bgp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
database.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
dhcp_relay.service.j2 [DHCP Relay]: Wait for all interfaces to come up before starting DHCP relay (#660) 2017-06-01 18:38:33 -07:00
docker_image_ctl.j2 Remove extra trailing newlines at EOF (#804) 2017-07-12 20:54:37 -07:00
lldp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
pmon.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
snmp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
sonic_debian_extension.j2 [System logs]: Improvements to prevent filling /var/log partition (#865) 2017-08-10 16:24:57 -07:00
swss.service.j2 [mellanox]: Move FW upgrade script to base image. (#849) 2017-07-28 10:57:51 -07:00
teamd.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00