public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Bentson-Royal <dbentson@lcsd.k12.wa.us>
To: linux-newbie <linux-newbie@vger.kernel.org>
Subject: Re: Cron Problem for squidGuard - LTSP 4.0.2 (FC3)
Date: Thu, 21 Apr 2005 09:40:10 -0700	[thread overview]
Message-ID: <4267D76A.2090809@lcsd.k12.wa.us> (raw)
In-Reply-To: <4a618d0805042109167b3627b6@mail.gmail.com>

Arturas,

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

---begin clip---
[root@localhost ~]# more /etc/cron.daily/squidGuard
#!/bin/bash
nice /usr/sbin/update_squidguard_blacklists
[root@localhost ~]# nice /usr/sbin/update_squidguard_blacklists
[root@localhost ~]# more /etc/cron.d/squidGuard
/etc/cron.d/squidGuard: No such file or directory
[root@localhost ~]# 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      parent reply	other threads:[~2005-04-21 16:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-21 16:05 Cron Problem for squidGuard - LTSP 4.0.2 (FC3) Dan Bentson-Royal
2005-04-21 16:24 ` Eric Harrison
     [not found] ` <4a618d0805042109167b3627b6@mail.gmail.com>
2005-04-21 16:40   ` Dan Bentson-Royal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4267D76A.2090809@lcsd.k12.wa.us \
    --to=dbentson@lcsd.k12.wa.us \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox