1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-24 20:48:01 +00:00

Add logrotate support for controller.log

This commit is contained in:
cuihaikuo
2017-02-10 14:37:06 +08:00
parent b8670b200b
commit 345a7e3e61

View File

@@ -712,12 +712,19 @@ sigchld_handler (int signo)
waitpid (-1, NULL, WNOHANG);
}
static void
sigusr1_handler (int signo)
{
seafile_log_reopen();
}
static void
set_signal_handlers ()
{
signal (SIGINT, sigint_handler);
signal (SIGTERM, sigint_handler);
signal (SIGCHLD, sigchld_handler);
signal (SIGUSR1, sigusr1_handler);
signal (SIGPIPE, SIG_IGN);
}