[leaf-user] Shorewall Log Rotation

2005-02-08 Thread David Pitts
G'day folks.  Happy New Year.

I am hoping someone is still out there that might be able to give me a
clue on an interesting problem.  

I have these scripts in my cron.daily directory:

-rwxr-xr-x1 root root 3552 Jan 13 10:36 multicron-d
-rwxr-xr-x1 root root  169 Jul  7  2002 savelog-sh-httpd
-rwxr-xr-x1 root root  242 Jan 17  2004 tinyproxy
-rwxr-xr-x1 root root  237 Jan 14  2003 ulogd

My crontab file looks like:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs
do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
00 5* * *   rootrun-parts --report /etc/cron.daily
47 6* * 7   rootrun-parts --report /etc/cron.weekly
52 61 * *   rootrun-parts --report /etc/cron.monthly

If I execute this command:

run-parts --report /etc/cron.daily

my logs all rotate nicely, but when the command is run by cron, the
ulogd script doesn't appear to work.  The shorewall log doesn't rotate
but tinyproxy does.

Any ideas?

Thanks.



---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Shorewall Log Rotation

2005-02-08 Thread Henning Jebsen
clue on an interesting problem.  
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
You should check if the environment variable PATH inside that cron-job 
is exactly the same like it is, when you issue your command directly.

cron always has its own PATH-variable set for security reasons.
This is a common issue/problem when commands are started from cron.
Perhaps you should check the *whole environment* for different settings 
if PATH is the same.

Good luck !

---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html