Re: correct signaling for logrotate/postrotate of hostapd logs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 09, 2019 at 08:42:24AM -0700, PGNet Dev wrote:
> I build/run hostapd on linux.
> 
> I use logrotate.d to manage logfiles.
> 
> For hostapd, using
> 
> 
> 	/var/log/hostapd/hostapd.log {

How do you make that file? With the -f<file> command line argument to
hostapd?

> 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?

If you are using -f on the command line, sending RELOG command over the
control interface (e.g., with "hostapd_cli RELOG") requests hostapd to
close and reopen the log file.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux