diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2022-01-11 15:39:11 -0300 |
|---|---|---|
| committer | Rafael F. Zalamena <rzalamena@opensourcerouting.org> | 2022-03-03 18:28:08 -0300 |
| commit | 3c1f92018bfa6a14ccf6eb70ccd93f38e54bf83f (patch) | |
| tree | e579da6d5e6dce2ba9ae2580b45d7d8ac6620d3e /lib/log_vty.c | |
| parent | 4190587a3f390825fa6dcaad0d4e84fdf417f135 (diff) | |
lib: rotate log file supplied by command line
Call `zlog_file_rotate` for command file lines as well otherwise on
`SIGUSR1` the old descriptor will still be used and no new log file will
be created for the rotation.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/log_vty.c')
| -rw-r--r-- | lib/log_vty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/log_vty.c b/lib/log_vty.c index 682c9ea372..3f9240aa55 100644 --- a/lib/log_vty.c +++ b/lib/log_vty.c @@ -159,6 +159,7 @@ void zlog_rotate(void) { zlog_file_rotate(&zt_file); zlog_file_rotate(&zt_filterfile.parent); + zlog_file_rotate(&zt_file_cmdline); hook_call(zlog_rotate); } |
