[ic] IC 5.4 Log rotation

Stefan Hornburg racke at linuxia.de
Tue Mar 7 08:57:18 EST 2006


Steve Graham wrote:
> 
>> >
>> > /var/log/interchange/*.log {
>> >         size 1000k
>> >         missingok
>> >         rotate 5
>> >         notifempty
>> >         sharedscripts
>> >         postrotate
>> >            if [ -f /var/run/interchange/interchange.pid ]; then \
>> >              if [ -x /usr/sbin/invoke-rc.d ]; then \
>> >                 invoke-rc.d interchange restart > /dev/null; \
>> >              else \
>> >                 /etc/init.d/interchange restart > /dev/null; \
>> >              fi; \
>> >            fi;
>> >         endscript
>> >
>> > }
> 
> 
> Thanks for the comments.
> This is what I had before:
> /usr/local/interchange/error.log
>  {
>  rotate 4
>  monthly
>  compress
>  nocreate
>  }
> 
> Maybe I just need to remove the nocreate option.
> The directory /usr/local/interchange was owned by user root, and group
> root.
> I guess Interchange either doesn't try to create the error.log file if
> not found, or errors out because of ownership.
> I'll play around with it a little more...

You can specify user/group for the log files in the logrotate configuration.

Bye
	Racke


More information about the interchange-users mailing list