]> granicus.if.org Git - vnstat/commitdiff
add example service file for systemd
authorTeemu Toivola <git@humdi.net>
Thu, 3 Apr 2014 16:49:47 +0000 (19:49 +0300)
committerTeemu Toivola <git@humdi.net>
Thu, 3 Apr 2014 16:49:47 +0000 (19:49 +0300)
examples/systemd/vnstat.service [new file with mode: 0644]

diff --git a/examples/systemd/vnstat.service b/examples/systemd/vnstat.service
new file mode 100644 (file)
index 0000000..1d898f5
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=vnStat network traffic monitor
+Documentation=man:vnstatd(1) man:vnstat(1) man:vnstat.conf(5)
+After=network.target
+
+[Service]
+ExecStart=/usr/sbin/vnstatd -n
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target