Hi,
I've noticed that newsyslog sends SIGHUP to syslogd on /var/log/wtmp
rotation.
But syslogd does not deal with the wtmp log file so there is no need for
SIGHUP.

I propose to make slightly changes to default newsyslog.conf file:

--- /etc/newsyslog.conf Thu Oct 11 22:18:27 2018
+++ /tmp/newsyslog.conf Wed Dec  8 02:05:10 2021
@@ -10,7 +10,7 @@
 /var/log/maillog 640  7     *    24    Z
 /var/log/messages 644  5     300  *     Z
 /var/log/secure 600  7     *    168   Z
-/var/log/wtmp 644  7     *    $W6D4 B
+/var/log/wtmp 644  7     *    $W6D4 B ""
 /var/log/xferlog 640  7     250  *     Z
 /var/log/pflog 600  3     250  *     ZB "pkill -HUP -u root -U root -t -
-x pflogd"
 /var/www/logs/access.log 644  4     *    $W0   Z "pkill -USR1 -u root -U
root -x httpd"


---------- Forwarded message ---------
От: Martijn van Duren <openbsd+m...@list.imperialat.at>
Date: ср, 8 дек. 2021 г. в 09:50
Subject: Re: Proposal for improvement of newsyslog.conf
To: Антон Касимов <kasimov...@gmail.com>, <m...@openbsd.org>


On Wed, 2021-12-08 at 02:12 +0300, Антон Касимов wrote:
> Hi,
> I've noticed that newsyslog sends SIGHUP to syslogd on /var/log/wtmp
> rotation.
> But syslogd does not deal with the wtmp log file so there is no need for
> SIGHUP.
>
> I propose to make slightly changes to default newsyslog.conf file:
> 13c13
> < /var/log/wtmp 644  7     *    $W6D4 B
> ---
> > /var/log/wtmp 644  7     *    $W6D4 B ""
>
> Is misc a proper mailing list, or shall I send this message to bugs?
>
tech@ is usually the best place for this kind of suggestions.
Also make sure that you make your diff unified (diff -u).

martijn@


-- 
Антон Касимов / Anton Kasimov

Reply via email to