logrotate for Solaris

2007-12-24 21:46:00

I have downloaded the logrotate package (logrotate-3.5.2) from
sunfreeware.com and installed it on a Solaris 8 box.
Unfortunatelly, I'm not able to get the logrotate binary to run due to
errors that seem to indicate that logrotate cannot read/understand the
config file.
I've tried this on Solaris 8 as well as 2.6 with the same errors:

Below is my logrotate.conf file and the errors I'm getting.
By the way, I've tried the same config file with logrotate on a linux box
and it works fine.

/etc/logrotate.conf:
----------------------------
weekly
rotate 4
compress
create
/var/log/log1 {
errors fhejazi at cdnow.com
rotate 3
size=5000k
postrotate
/usr/bin/echo "log1 rotated" | /usr/bin/mail
fhejazi at cdnow.com
endscript
}

Errors:
--------------
reading config file /etc/logrotate.conf
error: /etc/logrotate.conf:2 unexpected text
error: /etc/logrotate.conf:3 unexpected text
reading config info for /var/log/log1 {
error: /etc/logrotate.conf:4 unexpected text
error: /etc/logrotate.conf:5 unexpected text
error: /etc/logrotate.conf:6 unexpected log filename

Any idea or suggention would be appreciated!
Thanks,
Farzad

Comments

Got something to say?

You must be logged in to post a comment.