Linux
Jump to navigation
Jump to search
Kategorien
Linux Professional Institute
Image erstellen
http://martybugs.net/linux/image.cgi
Benutzer via PTS/# abmelden
pkill -KILL -t pts/#
Logrotate
/etc/logrotate.conf
/etc/logrotate.d/
Configure the /etc/logrotate.d/squid file
Configure your /etc/logrotate.d/squid file to rotate your log files automatically each week. Create the squid file, touch /etc/logrotate.d/squid and add:
/var/log/squid/access.log { weekly rotate 5 copytruncate compress notifempty missingok } /var/log/squid/cache.log { weekly rotate 5 copytruncate compress notifempty missingok } /var/log/squid/store.log { weekly rotate 5 copytruncate compress notifempty missingok # This script asks squid to rotate its logs on its own. # Restarting squid is a long process and it is not worth # doing it just to rotate logs postrotate /usr/sbin/squid -k rotate endscript }
Systemüberwachung
Aktuelle Tools: Icinga, Shinken