[ejabberd] Basic Question
flatworm at users.sourceforge.net
Thu Jan 21 20:54:06 MSK 2010
On Thu, 21 Jan 2010 11:34:01 -0600
Mark Keisler <grimm26 at gmail.com> wrote:
> most times you can safely do a "cp /dev/null logfile" to clear the log.
> This will empty the contents while ejabberd is able to keep the filehandle
> open. Deleting the file may leave the filehandle open and the space still
> tied up with said filehandle.
Truncation can be done even simpler using the ":" command which means "no-op":
$ : >logfile
More information about the ejabberd