BF: create flushlogs command to prevent logrotation clobbering logtarget. Closes gh-458

This commit is contained in:
Daniel Black
2013-12-04 20:51:30 +11:00
parent 3a5983ab0b
commit b5d6310d28
6 changed files with 20 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ protocol = [
["get loglevel", "gets the logging level"],
["set logtarget <TARGET>", "sets logging target to <TARGET>. Can be STDOUT, STDERR, SYSLOG or a file"],
["get logtarget", "gets logging target"],
["flushlogs", "flushes the logtarget if a file and reopens it. For log rotation."],
['', "JAIL CONTROL", ""],
["add <JAIL> <BACKEND>", "creates <JAIL> using <BACKEND>"],
["start <JAIL>", "starts the jail <JAIL>"],