]> www.vanbest.org Git - sasc-ng.git/commitdiff
Added logrotate script
authorJan-Pascal van Best <janpascal@vanbest.org>
Sun, 27 Jan 2013 15:53:27 +0000 (16:53 +0100)
committerJan-Pascal van Best <janpascal@vanbest.org>
Sun, 27 Jan 2013 15:53:47 +0000 (16:53 +0100)
debian/rules
debian/sasc-ng-common.sasc-ng.logrotate [new file with mode: 0644]

index 9b2ac9a858d40c501597069faf57b4eb2d7e7a80..e726f4902d8b36ef0e3be863b7012aee69cd1471 100755 (executable)
@@ -14,6 +14,9 @@ SHELL := /bin/bash
 override_dh_installinit:
        dh_installinit --name sasc-ng
 
+override_dh_installlogrotate:
+       dh_installlogrotate --name sasc-ng
+
 override_dh_auto_configure:
        # done per binary package in build-% rule
        
diff --git a/debian/sasc-ng-common.sasc-ng.logrotate b/debian/sasc-ng-common.sasc-ng.logrotate
new file mode 100644 (file)
index 0000000..6800795
--- /dev/null
@@ -0,0 +1,10 @@
+/var/log/sasc-ng.log {
+       daily
+       rotate 7
+       delaycompress
+       compress
+       missingok
+       postrotate 
+       [ ! -f /var/run/sasc-ng.pid ] || kill -HUP `cat /var/run/sasc-ng.pid`
+       endscript
+}