On 28-Apr-2004 Toad wrote: > On Tue, Apr 27, 2004 at 11:12:39PM -0500, Conrad Sabatier wrote: >> >> On 27-Apr-2004 Toad wrote: >> > >> > Uhm, what exactly is this supposed to do? >> >> Well, you know, rotate the log file. :-) >> >> > If you are not using >> > logRotate=true in the config file, then the node will just keep writing >> > to the first logfile, so it gets longer and longer and longer... >> >> The script archives the log file and clears it as well. > > Won't work. > You have to restart the node. > The node writes to the fd, not the file.
I beg to differ. It works fine for me. By echoing a new line to the existing log file using the ">" i/o redirection operator, the script clobbers any pre-existing content in the file, effectively emptying it out. The node happily continues writing to the new, cleaned out file. It works. -- Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas" _______________________________________________ Support mailing list [EMAIL PROTECTED] http://news.gmane.org/gmane.network.freenet.support Unsubscribe at http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/support Or mailto:[EMAIL PROTECTED]
