I seem to be having problems with logrotate and dansguardian. Here is the logrotate file for dansguardian: /var/log/dansguardian/access.log { rotate 5 daily prerotate echo Starting Log Rotation >> /home/dansguardian/LogRotateOutPut date >> /home/dansguardian/LogRotateOutPut /etc/init.d/dansguardian stop >> /home/dansguardian/LogRotateOutPut 2>&1 || true echo Running Report Script >> /home/dansguardian/LogRotateOutPut /home/dansguardian/GetDGReport >> /home/dansguardian/LogRotateOutPut 2>&1 endscript postrotate echo Running Startup Script >> /home/dansguardian/LogRotateOutPut /etc/init.d/dansguardian start >> /home/dansguardian/LogRotateOutPut 2>&1 endscript } The output (LogRotateOutPut) file looks like: Starting Log Rotation Mon Mar 14 06:25:20 MST 2005 Starting Log Rotation Mon Mar 14 06:25:20 MST 2005 Stopping DansGuardian: Stopping DansGuardian: dansguardian. Running Report Script dansguardian. Running Report Script Running Startup Script /var/log/dansguardian/html/March-14-2005.html: No such file or directory Running Startup Script Starting DansGuardian: Starting DansGuardian: Idansguardian. seem to be running already! As this output file seems to show, the DansGuardian script seems to be called twice. Yet when I test logrotate I get the following output: reading config file /etc/logrotate.conf including /etc/logrotate.d reading config file base-config reading config info for /var/log/installer.log reading config info for /var/log/installer.timings reading config file dansguardian reading config info for /var/log/dansguardian/access.log reading config file squid reading config info for /var/log/squid/*.log reading config info for /var/log/wtmp reading config info for /var/log/btmp Handling 6 logs rotating pattern: /var/log/installer.log forced from command line (4 rotations) empty log files are rotated, old logs are removed considering log /var/log/installer.log log /var/log/installer.log does not exist -- skipping rotating pattern: /var/log/installer.timings forced from command line (4 rotations) empty log files are rotated, old logs are removed considering log /var/log/installer.timings log /var/log/installer.timings does not exist -- skipping rotating pattern: /var/log/dansguardian/access.log forced from command line (5 rotations) empty log files are rotated, old logs are removed considering log /var/log/dansguardian/access.log log needs rotating rotating log /var/log/dansguardian/access.log, log->rotateCount is 5 renaming /var/log/dansguardian/access.log.5 to /var/log/dansguardian/access.log.6 (rotatecount 5, logstart 1, i 5), renaming /var/log/dansguardian/access.log.4 to /var/log/dansguardian/access.log.5 (rotatecount 5, logstart 1, i 4), renaming /var/log/dansguardian/access.log.3 to /var/log/dansguardian/access.log.4 (rotatecount 5, logstart 1, i 3), renaming /var/log/dansguardian/access.log.2 to /var/log/dansguardian/access.log.3 (rotatecount 5, logstart 1, i 2), renaming /var/log/dansguardian/access.log.1 to /var/log/dansguardian/access.log.2 (rotatecount 5, logstart 1, i 1), renaming /var/log/dansguardian/access.log.0 to /var/log/dansguardian/access.log.1 (rotatecount 5, logstart 1, i 0), running prerotate script running script with arg /var/log/dansguardian/access.log: " echo Starting Log Rotation >> /home/dansguardian/LogRotateOutPut date >> /home/dansguardian/LogRotateOutPut /etc/init.d/dansguardian stop >> /home/dansguardian/LogRotateOutPut 2>&1 || true echo Running Report Script >> /home/dansguardian/LogRotateOutPut /home/dansguardian/GetDGReport >> /home/dansguardian/LogRotateOutPut 2>&1 " renaming /var/log/dansguardian/access.log to /var/log/dansguardian/access.log.1 creating new log mode = 0644 uid = 102 gid = 102 running postrotate script running script with arg /var/log/dansguardian/access.log: " echo Running Startup Script >> /home/dansguardian/LogRotateOutPut /etc/init.d/dansguardian start >> /home/dansguardian/LogRotateOutPut 2>&1 " removing old log /var/log/dansguardian/access.log.6 rotating pattern: /var/log/squid/*.log forced from command line (2 rotations) empty log files are rotated, old logs are removed considering log /var/log/squid/access.log log needs rotating considering log /var/log/squid/cache.log log needs rotating considering log /var/log/squid/store.log log needs rotating running shared prerotate script running script with arg /var/log/squid/*.log : " test ! -x /usr/sbin/sarg-maint || /usr/sbin/sarg-maint " rotating log /var/log/squid/access.log, log->rotateCount is 2 previous log /var/log/squid/access.log.1 does not exist renaming /var/log/squid/access.log.2.gz to /var/log/squid/access.log.3.gz (rotatecount 2, logstart 1, i 2), renaming /var/log/squid/access.log.1.gz to /var/log/squid/access.log.2.gz (rotatecount 2, logstart 1, i 1), renaming /var/log/squid/access.log.0.gz to /var/log/squid/access.log.1.gz (rotatecount 2, logstart 1, i 0), renaming /var/log/squid/access.log to /var/log/squid/access.log.1 removing old log /var/log/squid/access.log.3.gz rotating log /var/log/squid/cache.log, log->rotateCount is 2 previous log /var/log/squid/cache.log.1 does not exist renaming /var/log/squid/cache.log.2.gz to /var/log/squid/cache.log.3.gz (rotatecount 2, logstart 1, i 2), renaming /var/log/squid/cache.log.1.gz to /var/log/squid/cache.log.2.gz (rotatecount 2, logstart 1, i 1), renaming /var/log/squid/cache.log.0.gz to /var/log/squid/cache.log.1.gz (rotatecount 2, logstart 1, i 0), renaming /var/log/squid/cache.log to /var/log/squid/cache.log.1 removing old log /var/log/squid/cache.log.3.gz rotating log /var/log/squid/store.log, log->rotateCount is 2 previous log /var/log/squid/store.log.1 does not exist renaming /var/log/squid/store.log.2.gz to /var/log/squid/store.log.3.gz (rotatecount 2, logstart 1, i 2), renaming /var/log/squid/store.log.1.gz to /var/log/squid/store.log.2.gz (rotatecount 2, logstart 1, i 1), renaming /var/log/squid/store.log.0.gz to /var/log/squid/store.log.1.gz (rotatecount 2, logstart 1, i 0), renaming /var/log/squid/store.log to /var/log/squid/store.log.1 removing old log /var/log/squid/store.log.3.gz running shared postrotate script running script with arg /var/log/squid/*.log : " test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate " rotating pattern: /var/log/wtmp forced from command line (1 rotations) empty log files are rotated, old logs are removed considering log /var/log/wtmp log needs rotating rotating log /var/log/wtmp, log->rotateCount is 1 renaming /var/log/wtmp.1 to /var/log/wtmp.2 (rotatecount 1, logstart 1, i 1), renaming /var/log/wtmp.0 to /var/log/wtmp.1 (rotatecount 1, logstart 1, i 0), renaming /var/log/wtmp to /var/log/wtmp.1 creating new log mode = 0664 uid = 0 gid = 43 removing old log /var/log/wtmp.2 rotating pattern: /var/log/btmp forced from command line (1 rotations) empty log files are rotated, old logs are removed considering log /var/log/btmp log /var/log/btmp does not exist -- skipping Logrotate reports to do the dansguardian only once, yet the output seems to show it being called twice. Does anyone have an idea of where I need to look to fix this? I am losing log files and I need to fix the lose. Thank You, David --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss