[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] IC 5.4 Log rotation



>
> /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...

Thanks for the insight.

-Steve

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.