On Sat, Mar 12, 2005 at 06:45:29PM +0700, A. Uliansyah wrote: > Buat crontab aja mas untuk siang dan malamnya. > Buat dua squid.conf untuk siang dan malam. > Gunakan opsi -f. > man squid > -f file Use given config-file instead of > /etc/squid/squid.conf > > Misal: > crontab -e > 00 07 * * * /root/squid-siang.sh > 00 16 * * * /root/squid-malam.sh > > vi /root/squid-siang.sh > #!/bin/bash > killall -9 squid > /usr/sbin/squid -f /etc/squid/squid-siang.conf > > vi /root/squid-malam.sh > killall -9 squid > /usr/sbin/squid -f /etc/squid/squid-malam.conf
Why reinvent the wheel? http://www.squid-cache.org/Doc/FAQ/FAQ-10.html#ss10.17 Ronny
pgpYxIxmJOIXl.pgp
Description: PGP signature