[packages/vnstat] - added systemd service unit and tmpfiles.d conf file

kiesiu kiesiu at pld-linux.org
Sun Sep 14 22:05:04 CEST 2014


commit b356dd333d7fe0eee865036bf3ea8987504acfa4
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Sun Sep 14 21:22:58 2014 +0200

    - added systemd service unit and tmpfiles.d conf file

 vnstat.service  | 13 +++++++++++++
 vnstat.tmpfiles |  1 +
 2 files changed, 14 insertions(+)
---
diff --git a/vnstat.service b/vnstat.service
new file mode 100644
index 0000000..63e92b8
--- /dev/null
+++ b/vnstat.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=vnStat network traffic monitor
+Documentation=man:vnstatd(1) man:vnstat(1) man:vnstat.conf(5)
+After=network.target
+
+[Service]
+User=vnstat
+Group=vnstat
+ExecStart=/usr/sbin/vnstatd -n
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
diff --git a/vnstat.tmpfiles b/vnstat.tmpfiles
new file mode 100644
index 0000000..d3ca5b3
--- /dev/null
+++ b/vnstat.tmpfiles
@@ -0,0 +1 @@
+d /var/run/vnstat 0750 vnstat vnstat -
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vnstat.git/commitdiff/0776a662a5feb33d5c80872a91b447bd8349370d



More information about the pld-cvs-commit mailing list