logrotate
Ulf Rompe
Ulf.Rompe at icem.com
Fri Sep 26 09:03:15 UTC 2008
On Fr, 2008-09-26 at 13:28 +0530, Kaushal Shriyan wrote:
> I am using logrotate utility to compress catalina.out file. when i run
> it using debug mode, I get
> #/usr/sbin/logrotate -dv /usr/local/bin/scripts/logrotate-tomcat5-catalina.conf
[...]
> copying /var/log/tomcat5/catalina.out to /var/log/tomcat5/catalina.out.1
[...]
> error: unable to open /var/log/tomcat5/catalina.out.1 for compression
[...]
> Any ideas as what is going wrong
Well, you are running in debug mode. From the logrotate man page:
-d Turns on debug mode and implies -v. In debug mode, no changes
will be made to the logs or to the logrotate state file.
That means the error message is completely OK. Logrotate will start to
do it's work once you remove the "-d" option. If you want to monitor
it's progress, just stay with "-v".
[x] ulf
--
Doing a job RIGHT the first time gets the job done.
Doing the job WRONG fourteen times gives you job security.
More information about the ubuntu-users
mailing list