From da92eae80dc50ee1b24964bcc19d6ea94f4902c8 Mon Sep 17 00:00:00 2001 From: Teemu Toivola Date: Thu, 3 Apr 2014 19:49:47 +0300 Subject: [PATCH] add example service file for systemd --- examples/systemd/vnstat.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/systemd/vnstat.service 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 -- 2.40.0