Alors forcément je n'y arrive pas du permier coup et pourtant j'ai cherché......
Voila ce que je fais:
Mes fichiers et leurs répertoires:
/tmp/squid/free/domains (fichier domains avec aucunes règles de restriction de domaine)
/tmp/squid/restriction/domains (fichier domains avec les restrictions des sites)
Mes deux scripts. (script avec chmod +x)
/tmp/squid/crontab/free/free.sh
squid stop
cp -f /tmp/squid/free/domains /user/share/squidGuard-1.2.0/db/banneddestination/
squid start
/tmp/squid/crontab/restriction/restriction.sh
squid stop
cp -f /tmp/squid/restriction/domains /user/share/squidGuard-1.2.0/db/banneddestination/
squid start
J'édite le fichier /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root nice -n 19 run-parts /etc/cron.hourly
00 9 * * root run-parts /tmp/squid/crontab/restriction/restriction.sh
45 12 * * root run-parts /tmp/squid/crontab/free/free.sh
45 13 * * root run-parts /tmp/squid/crontab/restriction/restriction.sh
00 17 * * root run-parts /tmp/squid/crontab/free/free.sh
22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly
Voila et ca marche pas
Quand je veux stoper ou redémarrer crond , j'ai ce message la :
crond: can't lock /var/run/crond.pid, otherpid may be 5474: Resource temporarily unavailable
Merci de votre aide.