I build/run hostapd on linux.
I use logrotate.d to manage logfiles.
For hostapd, using
/var/log/hostapd/hostapd.log {
daily
missingok
rotate 10
compress
delaycompress
compresscmd /usr/bin/xz
uncompresscmd /usr/bin/unxz
copytruncate
create 600 root root
sharedscripts
dateext
dateformat .%Y-%m-%d.%s
}
correctly rolls the log, creating a archive, but there's no more writing
to the existing/active log. Until I manually *restart* hostapd ...
What's the correct non-connection-terminating postrotate clause
...
postrotate
???
endscript
that properly signals hostapd to continue writing to its main log?
my attempts at
systemctl reload ...
or
bin/kill -USR1 <hostapd pid>
aren't doing the trick; log stays unwritten/empty until daemon restart.
_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap