diff --git a/src/daemon.c b/src/daemon.c index f683bfc..746fde2 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -44,6 +44,9 @@ enum { stop = 0, run, reconfig, logrotate, test } state = run; void signal_handler(int signum) { switch (signum) { + case SIGUSR1: + state = logrotate; + break; case SIGTERM: case SIGINT: f2b_log_msg(log_info, "got SIGTERM/SIGINT, exiting");