Add logrotate.d script
authorJSurf <jsurf@gmx.de>
Wed, 25 Jun 2014 08:40:25 +0000 (10:40 +0200)
committerJSurf <jsurf@gmx.de>
Wed, 25 Jun 2014 08:40:25 +0000 (10:40 +0200)
debian/changelog
debian/hmland.logrotate [new file with mode: 0644]
debian/rules

index d1a6d51..d855e9e 100644 (file)
@@ -1,3 +1,9 @@
+hmcfgusb (0.097-2) unstable; urgency=low
+
+  * Add logrotate script
+
+ -- JSurf <jsurf@gmx.de>  Wed, 25 Jun 2014 10:37:00 +0200
+
 hmcfgusb (0.097-1) unstable; urgency=low
 
   * Initial release
diff --git a/debian/hmland.logrotate b/debian/hmland.logrotate
new file mode 100644 (file)
index 0000000..b770e98
--- /dev/null
@@ -0,0 +1,9 @@
+/var/log/hmland.log {
+     rotate 12
+     weekly
+     compress
+     missingok
+     postrotate
+         /etc/init.d/hmland restart
+     endscript
+}
\ No newline at end of file
index 4d5943c..ced4c98 100755 (executable)
@@ -13,4 +13,6 @@
        dh $@ 
 
 override_dh_installinit:
-       dh_installinit --name=hmland
\ No newline at end of file
+       dh_installinit --name=hmland
+override_dh_installlogrotate:
+       dh_installlogrotate --name=hmland
Impressum, Datenschutz