Package: vnstat Version: 1.12-2 Severity: important Dear Maintainer,
On an Alix board without an RTC I am currently having trouble to get vnstat running on boot, I always get the following error: ----- $ systemctl status vnstat ● vnstat.service - vnStat network traffic monitor Loaded: loaded (/lib/systemd/system/vnstat.service; enabled) Active: failed (Result: exit-code) since Sa 2000-01-01 01:02:07 CET; 16 years 1 months ago Docs: man:vnstatd(1) man:vnstat(1) man:vnstat.conf(5) Process: 466 ExecStart=/usr/sbin/vnstatd -n (code=exited, status=1/FAILURE) Main PID: 466 (code=exited, status=1/FAILURE) Jan 01 01:02:06 nm-alix systemd[1]: Started vnStat network traffic monitor. Jan 01 01:02:06 nm-alix vnstatd[466]: Info: Monitoring: eth0 (100 Mbit) eth1 (100 Mbit) ppp0 (100 Mbit) Jan 01 01:02:06 nm-alix vnstatd[466]: Error: Interface "eth0" has previous update date too much in the future, exiting. (1455245147 / 946684926) Jan 01 01:02:07 nm-alix systemd[1]: vnstat.service: main process exited, code=exited, status=1/FAILURE Jan 01 01:02:07 nm-alix systemd[1]: Unit vnstat.service entered failed state. ----- Starting vnstat manually ("$ systemctl start vnstat") works as at that time NTP has fetched the correct time for me. On embedded devices it is rather common to not have an RTC and with ARM based devices running Debian on the rise, I thought I'd mark this bug as "important". I guess either vnstat should retry instead of exiting. And/or maybe the neat, new dependancy system available thanks to systemd could be used. The mysqld unit does something like that, e.g. units depending on it will be started not after mysqld has started, but once mysqld reports being ready to receive queries. This is done through "ExecStartPost=/usr/libexec/mysqld-wait-ready" in the mysqld unit. Maybe something like that could be done with NTP and vnstat too? A quick and dirty solution would be to simply add the line "Restart=on-failure" to the vnstat unit, I guess. Regards, Linus -- System Information: Debian Release: 8.3 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i586) Kernel: Linux 3.16.0-4-586 Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages vnstat depends on: ii adduser 3.113+nmu3 ii init-system-helpers 1.22 ii libc6 2.19-18+deb8u2 vnstat recommends no packages. Versions of packages vnstat suggests: pn vnstati <none> -- no debconf information