Squid - Duplicate cron bug



  • Tested with squid3-dev 3.3.10 pkg 2.2.1

    If you edit squid cron (with Cron package installed)

    0  	0  	*  	*  	*  	root  	/bin/rm /var/squid/cache/swap.state; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf
    

    and after that you modify squid configuration, you will get a duplicated cron

    0  	0  	*  	*  	*  	root  	/bin/rm /var/squid/cache/swap.state; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf
    0  	0  	*  	*  	*  	root  	/bin/rm /var/squid/cache/swap.state; /usr/pbi/squid-amd64/sbin/squid -k rotate -f /usr/pbi/squid-amd64/etc/squid/squid.conf
    


  • This situation happens because gui does not preserve hidden squid cron identification.

    In some situations will act like a bug but on other like a custom cron config.


Log in to reply