/var/log/gnump3d/*.log {
	weekly
	missingok
	rotate 52
	compress
	delaycompress
	notifempty
	create 644 root adm
	sharedscripts
	postrotate
	   if [ -f /var/run/gnump3d.pid ]; then \
	     if [ -x /usr/sbin/invoke-rc.d ]; then \
		invoke-rc.d gnump3d restart > /dev/null; \
	     else \
	        /etc/init.d/gnump3d restart > /dev/null; \
	     fi; \
	   fi;
	endscript
}
