after sent out the Pre-summary version , I received lots of good advices
.
thanks everyone who give me much help.
the consequence:
excerpt from Netscape's document
http://help.netscape.com/kb/server/971202-1.html:
|Synopsis: Server fails to restart after rotating large log file
| This problem typically occurs with large log file. By
large, we mean
| around 20MB or more.
|
| The server would fail to restart after the log file has
| been rotated. In some cases, the only way to regain
control of the
| server is to reboot the machine.
|
| This problem is because the "rotate" script sends a Kill
-HUP signal,
| and this is not sufficient to kill off all the necessary
| processes. Thus, leaving behind child processes. If you
look at the
| rotate script, it is calling the restart command.
|
| Solution:
|
| One workaround for the problem is to rotate your log file
more often
| which will create smaller log file.
|
| The second workaround is to modify the rotate script in
| <server-root>/https-servername/rotate to execute a stop
| and then start instead of the restart.
|
| How to change rotate script:
|
| The very last line of the script looks like this:
| $ROOTDIR/restart
|
| remove the above line and replace with these two lines:
| $ROOTDIR/stop
| $ROOTDIR/start
20Mb is a large log file ? I doubt. but it seems we must live with this
.
I think I should set the purge frequency once an hour , or much short
time , or the log file will become 'huge'. :->
origin question:
hi, all
How can I clear the logs of the netscpae Enterprise server.
We now running netscape Enterprise www server , and the logs increased
very quickly . to clear the logs you must stop the Server and remove the
log file , then restart the www server .
Is there a way to purge the log without stopping the www service ?
Thank in advices
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:45 CDT