From: Teemu Toivola Date: Thu, 3 Apr 2014 16:49:47 +0000 (+0300) Subject: add example service file for systemd X-Git-Tag: v1.12~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da92eae80dc50ee1b24964bcc19d6ea94f4902c8;p=vnstat add example service file for systemd --- diff --git a/examples/systemd/vnstat.service b/examples/systemd/vnstat.service new file mode 100644 index 0000000..1d898f5 --- /dev/null +++ b/examples/systemd/vnstat.service @@ -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