From: JSurf Date: Wed, 25 Jun 2014 08:40:25 +0000 (+0200) Subject: Add logrotate.d script X-Git-Tag: v0.102~26^2 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/ed0e161b97bde9ae332c8ed31f118c0c8df816f0?hp=f74866a1cb5762b0326e1925aa19791cfd8ff356 Add logrotate.d script --- diff --git a/debian/changelog b/debian/changelog index d1a6d51..d855e9e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +hmcfgusb (0.097-2) unstable; urgency=low + + * Add logrotate script + + -- JSurf 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 index 0000000..b770e98 --- /dev/null +++ b/debian/hmland.logrotate @@ -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 diff --git a/debian/rules b/debian/rules index 4d5943c..ced4c98 100755 --- a/debian/rules +++ b/debian/rules @@ -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