Arturas,

Here are the contents of squidGuard in /etc/cron.daily/ and
/etc/cron.d/squidGuard

---begin clip---
[EMAIL PROTECTED] ~]# more /etc/cron.daily/squidGuard
#!/bin/bash
nice /usr/sbin/update_squidguard_blacklists
[EMAIL PROTECTED] ~]# nice /usr/sbin/update_squidguard_blacklists
[EMAIL PROTECTED] ~]# more /etc/cron.d/squidGuard
/etc/cron.d/squidGuard: No such file or directory
[EMAIL PROTECTED] ~]# tail -n 100 /usr/sbin/update_squidguard_blacklists
#!/bin/sh

TARGET=/var/squidGuard/blacklists

cd $TARGET || exit

# only run if squidGuard is active!
[ "`ps auxw | grep squid[G]uard`" ] || exit

rsync -az squidguard.mesd.k12.or.us::filtering $TARGET

for DIR in `ls $TARGET`
do
if [ -f $DIR/domains.include ]
then
TMP=$RANDOM
cat $DIR/domains $DIR/domains.include | sort | uniq > $DIR/domains.$TMP
mv -f $DIR/domains.$TMP $DIR/domains
fi
if [ -f $DIR/urls.include ]
then
TMP=$RANDOM
cat $DIR/urls $DIR/urls.include | sort | uniq > $DIR/urls.$TMP
mv -f $DIR/urls.$TMP $DIR/urls
fi
done


/usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -C all
# /usr/sbin/squidGuard -c /etc/squid/squidGuard.conf  -u

chown -R squid.squid $TARGET
chown -R squid.squid /var/log/squidGuard/

sleep 5s

/usr/bin/killall -HUP squid
---end clip---
Arturas Moskvinas wrote:
-rwxr-xr-x 1 root root 56 Apr 16 20:00 squidGuard


Can you write the contents of squidGuard in /etc/cron.daily/ and
/etc/cron.d/squidGuard


Arturas Moskvinas



--
***NOTE***
Whenever you make a request for LCSD technical assistance, please be sure to report this problem to our helpdesk at:
http://help1.lcsd.k12.wa.us/helpdesk/


Dan Bentson-Royal
La Center Schools

     What are employers looking for in an employee?

Come to work every day and be on time.
Make smart decisions.
Follow directions.
Concentrate on your work and care about the quality of your work.
Read, write, and calculate well.
Recognize problems and find solutions.
Finish a job when you're supposed to without sacrificing quality.
Be honest and dependable.
Take the lead and work hard.
Communicate well and get along with other people...especially customers.
Dress properly and practice good grooming.
Be cooperative.
Have a positive attitude.


     From the Northwest Pennsylvania Industrial Resource Center, Inc.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to