#
# /etc/logrotate.d/nws
#
# written by Martin Quinson <martin.quinson@ens-lyon.fr>
/var/log/nws/*.err {
	rotate 5
        daily
        compress
	copytruncate
	
	#stop the log creation
	prerotate
                /usr/bin/nws_setup -c /etc/nws.conf log >/dev/null
	endscript

	#relaunch the log creation
        postrotate
                /usr/bin/nws_setup -c /etc/nws.conf log >/dev/null
        endscript
}

/var/log/nws/*.log {
	rotate 5
        daily
        compress
	copytruncate
	
	#stop the log creation
	prerotate
                /usr/bin/nws_setup -c /etc/nws.conf log >/dev/null
	endscript

	#relaunch the log creation
        postrotate
                /usr/bin/nws_setup -c /etc/nws.conf log >/dev/null
        endscript
}
