tags 702201 +patch
thanks

I've attached a patch that enables the `delaycompress` flag and also fixes the 
nmbd reload by using `smbcontrol nmbd reload-config` instead of sending SIGHUP.

-- 
Mit freundlichen Grüßen,
Martin v. Wittich

IServ GmbH
Bültenweg 73
38106 Braunschweig

Telefon:   0531-2243666-0
Fax:       0531-2243666-9
E-Mail:    [email protected]
Internet:  iserv.eu

USt-IdNr. DE265149425 | Amtsgericht Braunschweig | HRB 201822
Geschäftsführer: Benjamin Heindl, Jörg Ludwig
--- /etc/logrotate.d/samba.orig
+++ /etc/logrotate.d/samba	2014-06-27 14:49:55.081867734 +0200
@@ -6,6 +6,7 @@
 		/etc/init.d/smbd reload > /dev/null
 	endscript
 	compress
+	delaycompress
 	notifempty
 }
 
@@ -14,8 +15,10 @@
 	missingok
 	rotate 7
 	postrotate
-		[ ! -f /var/run/samba/nmbd.pid ] || kill -HUP `cat /var/run/samba/nmbd.pid`
+		smbcontrol nmbd reload-config
 	endscript
 	compress
+	delaycompress
 	notifempty
 }
+

Reply via email to