correct signaling for logrotate/postrotate of hostapd logs?

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

 



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



[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