Re: [squid-users] The command, squid -k rotate put in cron job is not working, anybody please help

From: Dirk Datzert <dirk.datzert@dont-contact.us>
Date: Tue, 14 Aug 2001 13:10:23 +0200

Hi Chok,

I thing that you have multiple squid in your searchpath.

Try 'which squid' to find out which squid is running on your shell. You
can lock into /usr/bin/squid
, maybe ther is a call to another squid-executable.

The cron-job maybe sees a resource control script.

Regards,
Dirk

Chok Meng schrieb:

> Hi All
>
> I need some help on the above matter. My organisation
> is using Linux Mandrake rel. 5.3 (Festen), kernel
> 2.0.36. This Linux server is providing proxy service
> to the organisation. I am not able to execute squid -V
> to check its version. Nevertheless, my problem is as
> follow:
>
> 1. I created a script file called squidrotate.sh and
> put the script file in /var/log/squid directory:
> #!/bin/bash
> squid -k rotate
>
> 2. Next, I put an entry in root's cron tab with the
> following:
> 16 18 * * * /var/log/squid/squidrotate.sh
>
> 3. When I check my Mail entry for root, the following
> appear:
>
> >From root Tue Aug 14 18:16:03 2001
> Return-Path: <root>
> Received: (from root@localhost)
> by proxy (8.8.7/8.8.7) id SAA16033
> for root; Tue, 14 Aug 2001 18:16:02 +0800
> Date: Tue, 14 Aug 2001 18:16:02 +0800
> Message-Id: <200108141016.SAA16033@proxy>
> From: root@proxy (Cron Daemon)
> To: root@proxy
> Subject: Cron <root@proxy>
> /var/log/squid/squidrotate.sh
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=root>
>
> Usage: /usr/bin/squid {start|stop|status|restart}
>
> >From point 3, the cron tab did not execute my squid
> command due its usage.
>
> However, when I execute ./squidrotate.sh from
> /var/log/squid directory online, it works fine i.e.
> the log files are rotated. So, I am wondering what is
> wrong? Please help.
>
> Fu Chok Meng
> Systems Administrator
> Tel: (65)4506120
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Y! Pages - Search or browse for business listings.
> http://yp.yahoo.com.sg/

--
Dirk Datzert
Rasselstein Hoesch GmbH
Informatik / Anwendungsentwicklung
D-56626 Andernach
Koblenzer Strasse 141
http://www.rasselstein-hoesch.de
Tel.: +49 (0) 2631 81-4595
Fax.: +49 (0) 2631 81-15-4595
mailto:Dirk.Datzert@rasselstein-hoesch.de

Received on Tue Aug 14 2001 - 05:10:45 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:37 MST