- Traffic rate wasn't being shown for the last entry of most lists during
the first update of the next period (first SaveInterval minutes of each
new hour, day, month and year)
+ - Systemd example service file could result in database file write issues
+ if the used systemd version supported ProtectSystem=strict but didn't
+ support StateDirectory (issue seen at least with systemd 232 in Debian 9)
2.2 / 28-Apr-2018
Description=vnStat network traffic monitor
Documentation=man:vnstatd(1) man:vnstat(1) man:vnstat.conf(5)
After=network.target
+StartLimitIntervalSec=20
+StartLimitBurst=4
[Service]
ExecStart=/usr/sbin/vnstatd -n
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
+RestartSec=2
# Hardening
ProtectSystem=strict
+ReadWritePaths=/var/lib
StateDirectory=vnstat
PrivateDevices=yes
ProtectKernelTunables=yes