View Alfredo Tigolo III's profile on LinkedIn

Sunday, June 26, 2011

Added crontab options to shutdown and rotate squid logs

# shutdown at 8am, 4pm, and 12am
0       */8     *       *       *       root    shutdown -p now

# rotating squid logs daily at 10PM logs rotate and 11PM makes access.log readable
0       23      *       *       *       root    chmod 644 /usr/local/squid/var/logs/access.log
0       22      *       *       *       root    /usr/local/squid/sbin/squid -k rotate

No comments: