7.3.33. log_reopen#
7.3.33.1. Summary#
log_reopen is a command that reloads log files.
It is used to reload log files such as groonga log or query log which
are specified by --log-path or --query-log-path options.
Note
This command only works when the number of worker processes is
equal to 1. Thus, it means that if you use
groonga-httpd with 2 or more
workers, you must use groonga-httpd -s reopen instead.
7.3.33.2. Syntax#
This command takes no parameters:
log_reopen
7.3.33.3. Usage#
log_reopen
[true]
7.3.33.3.1. Lotate log files with log_reopen#
Rename target log files such as mv command. (Log content is still written into moved log files)
Execute
log_reopencommand.New log file is created as same as existing log file name. newer log content is written to new log file.
7.3.33.4. Parameters#
There is no required parameter.
7.3.33.5. Return value#
The command returns true as body if the command succeeds such as:
[HEADER, true]
The command returns false otherwise such as:
[HEADER, false]