[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Mail & FTP not rotating
- Subject: [cobalt-developers] Mail & FTP not rotating
- From: "William L Thomson Jr" <webmaster@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu Oct 19 15:02:00 2000
- Organization: Obsidian-Studios Inc.
- List-id: Mailing list for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
I am new to Cobalt's & the entire Unix world, I have been attempting to
install Urchin 3 web site statistics for a little while now. Urchin
requires a different log format than comes default with the cobalt. To not
screw up the Cobalt OS I added the following to my httpd.conf file
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %v %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
urchin
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.
CustomLog /var/log/httpd/urchin urchin
CustomLog /var/log/httpd/access combined
This does create two log files, each with there own format. To rotate my
new log file I added this to my apache file in the logrotate.d folder
/var/log/httpd/urchin {
missingok
postrotate
/usr/bin/killall -HUP httpd 2> /dev/null || true
endscript
daily
}
At first I had named the urchin log file access_urchin. I changed it to
just urchin because I thought it was throwing off my rotation of Mail & FTP
logs. Ever since I created this new log file I get these two emails daily,
-------------------------------------------------------
errors occured while rotating /var/log/xferlog
Failed to open /home/sites//logs/ftp.log: No such file or directory
error running prerotate script --
leaving old log in place
-------------------------------------------------------
errors occured while rotating /var/log/maillog
Failed to open /home/sites//logs/mail.log: No such file or directory
error running prerotate script --
leaving old log in place
-------------------------------------------------------
Now that I have renamed my urhcin log file, cron no longer rotates it?
Weird. I guess I can change it back to access_urchin since it did not
correct the problem with my mail & ftp logs not being rotated.
The problem is obvious the /home/sites//logs/ftp.log should be something
like /home/sites/home/logs/ftp/log. I just do not know where it pulls that
variable from. It would not make sense for it to have much to do with my
new log, since the web logs (which was what I was changing) still rotate &
work as they should.
Any help is appreciated. Anyone run into this before?
I am not sure if it matters or not but I am using a RaQ 4r.
Thanks
William L. Thomson Jr.
CEO
Obsidian-Studios Inc.