r730: move the current debian dir to debian-unstable
[ira/wip.git] / packaging / Debian / debian-unstable / samba.logrotate
diff --git a/packaging/Debian/debian-unstable/samba.logrotate b/packaging/Debian/debian-unstable/samba.logrotate
new file mode 100644 (file)
index 0000000..f90437b
--- /dev/null
@@ -0,0 +1,21 @@
+/var/log/samba/log.smbd {
+       weekly
+       missingok
+       rotate 7
+       postrotate
+               invoke-rc.d --quiet samba reload > /dev/null
+       endscript
+       compress
+       notifempty
+}
+
+/var/log/samba/log.nmbd {
+       weekly
+       missingok
+       rotate 7
+       postrotate
+               [ -f /var/run/samba/nmbd.pid ] && kill -HUP `cat /var/run/samba/nmbd.pid`
+       endscript
+       compress
+       notifempty
+}