From ed0e161b97bde9ae332c8ed31f118c0c8df816f0 Mon Sep 17 00:00:00 2001 From: JSurf Date: Wed, 25 Jun 2014 10:40:25 +0200 Subject: [PATCH 1/1] Add logrotate.d script --- debian/changelog | 6 ++++++ debian/hmland.logrotate | 9 +++++++++ debian/rules | 4 +++- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 debian/hmland.logrotate 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 -- 2.39.2