Forum OpenACS Q&A: Restricting size of config file

Collapse
Posted by Andrew Zeon on
Hi,

My config file get's really big. I'm periodically doing "cat
/dev/null > error.log" but it's a bit of a pain. How can I make it
restricted to a certain size?

Thanks.

Collapse
Posted by Ola Hansson on
You can have this script do it for you:

https://openacs.org/new-file-storage/one-file?file_id=188

Directions are in the script...

Collapse
Posted by Ola Hansson on
You may want Bart's version instead. That is what I use, I think.

See this thread:

https://openacs.org/bboard/q-and-a-fetch-msg.tcl?msg_id=0004pR&topic_id=14&topic=OpenACS%204%2e0%20Testing

Collapse
Posted by Andrew Zeon on
I've got a copy of logroll.tcl. Where would be an appropriate place
to put it? Is /usr/local/aolserver an appropriate place?

Thanks.

Collapse
Posted by Andrew Zeon on
Opps... I just realised that I titled this post "Restricting size of
config file" when it should be "Restricting size of ERROR file".

Sorry about that.

Collapse
Posted by Ola Hansson on
No problem, I guessed as much 😊

It would be better to put it under /web/_your_server_/tcl/
or wherever the OpenACS installation lives on your box, /me thinks.

Collapse
Posted by Andrew Zeon on
Yes... that's where I've put it and works fine. I was just wondering
if there are any directories outside /web/myserver that I could put
it. No big deal... /web/myserver/tcl is fine.

Thanks.

Collapse
Posted by Arjun Sanyal on
andrew: i think you can put it anywhere that gets sourced on server starup, but since it's a global thing, it makes the most sense to put it in the global tcl dir.