]> git.ipfire.org Git - thirdparty/chrony.git/commit
logging: try to reopen message log on cyclelogs command
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2025 11:57:37 +0000 (12:57 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 20 Mar 2025 15:34:35 +0000 (16:34 +0100)
commitdd8738119bf9228cc718f2f67091efcd428a2970
tree909cfbca0b258e24ad15de072a2dab51c73ac303
parent75bbccf518c617150ffaee30c7f229172b28353f
logging: try to reopen message log on cyclelogs command

When the cyclelogs command is issued, check if the file specified by the
-l option is still in its place and if not try opening it again. If that
fails (e.g. due to chrony no longer having root privileges), keep the
old file handle to avoid losing log messages.
doc/chronyc.adoc
logging.c