Hi,

In addition to the service file, here is a patch to use dh-systemd:

By applying dh-systemd.patch, systemd users will enjoy a fully working
vnstat on their machines: it will get enabled and started properly
(even if installed on sysvinit and later switching to systemd).

You can see the differences this patch causes in the attached
dh-systemd.debdiff. Use:

    colordiff --difftype=debdiff < dh-systemd.debdiff

(colordiff's highlighting is not entirely correct, but very helpful.)

Please apply this patch before uploading a new version. Thank you!

For more details on dh-systemd packaging, see
http://wiki.debian.org/Systemd/Packaging
In case of any questions, feel free to drop by in #debian-systemd or
send an email to pkg-systemd-maintain...@lists.alioth.debian.org

-- 
Best regards,
Michael

Attachment: dh-systemd.debdiff
Description: Binary data

diff -ur OLD/debian/control NEW/debian/control
--- OLD/debian/control	2011-07-23 17:06:10.000000000 +0200
+++ NEW/debian/control	2013-07-09 22:09:42.969246227 +0200
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Debian QA Group <packa...@qa.debian.org>
-Build-Depends: debhelper (>= 7), libgd2-xpm-dev
+Build-Depends: debhelper (>= 7), libgd2-xpm-dev, dh-systemd (>= 1.4)
 Standards-Version: 3.9.2
 Homepage: http://humdi.net/vnstat/
 
@@ -24,4 +24,3 @@
  vnStat. The image file format is limited to png. All basic outputs
  of vnStat are supported excluding live traffic features.
  The image can be outputted either to a file or to standard output.
-
diff -ur OLD/debian/rules NEW/debian/rules
--- OLD/debian/rules	2011-07-23 17:06:44.000000000 +0200
+++ NEW/debian/rules	2013-07-09 22:09:42.969246227 +0200
@@ -1,5 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@
-
+	dh $@ --with=systemd

Reply via email to