Am 27.09.2005 14:37 Uhr schrieb "Axel Luttgens" unter <email@hidden>:
Hi Axel,
thanks a lot for the in depth info!
>> if sw_vers -productName|grep -vq Server; then
...
>> to rotate the logs, but this code seems not to execute (the starting if
>> evaluates to "true").
>
> If you mean "has a non zero return code" by "evaluates to true", then it
> strictly speaking evaluates to false!
> Above log rotating code is intended for a stock client OSX, not for a
> server OSX; the latter by default uses apache's rotatelogs binary.
> Look at the -v option for grep: it inverts the meaning of the match, by
> selecting non-matching lines.
As always, the devil is in the details!
Wouldn't it be possible to remove the -v, to have normale rotation via this
script?
Will it work without restart of apache?
>> Instead, when you activate "archive every n day" in server admin, apache
>> continues to write log files, but with a random extension.
> Yes, that's the behavior of the rotatelogs binary.
That makes me sigh...
...
>> How can i change the setup for this?
>>
> You would have to manually change the logging settings in apache's
> configuration files; unless it is directly feasible through the GUI by
> providing an appropriate log file name - not in front of a server here.
> (see the man page of rotatelogs(8) for the naming of the log files).
Thanks for this pointer, as far as i see, there will always be an appendix
to the log file name...
I probably have to change something in my application logic.
Wolfram
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden
This email sent to email@hidden