From: Teemu Toivola Date: Thu, 16 May 2019 20:54:27 +0000 (+0300) Subject: fix pid file path in debian and redhat init.d example files X-Git-Tag: v2.3~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6592592cd8b72d371fe8d115b7a19b0612f3efb;p=vnstat fix pid file path in debian and redhat init.d example files --- diff --git a/CHANGES b/CHANGES index 87454de..42be9d7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,5 @@ 2.3 / + - Fixed - 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 @@ -6,6 +7,7 @@ - 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) + - Debian and Red Hat init.d example files had wrong path for the pid file - New - Add configuration option DatabaseWriteAheadLogging to enable SQLite Write-Ahead Logging mode which may provide some disk i/o benefits, diff --git a/examples/init.d/debian/vnstat b/examples/init.d/debian/vnstat index 10723a2..2e97bb1 100755 --- a/examples/init.d/debian/vnstat +++ b/examples/init.d/debian/vnstat @@ -13,7 +13,7 @@ DESC="vnStat daemon" NAME=vnstatd DAEMON=/usr/sbin/$NAME DAEMON_ARGS="-d" -PIDFILE=/var/run/vnstat.pid +PIDFILE=/var/run/vnstat/vnstat.pid SCRIPTNAME=/etc/init.d/vnstat # Exit if the package is not installed diff --git a/examples/init.d/redhat/vnstat b/examples/init.d/redhat/vnstat index 04b6abf..5adef68 100755 --- a/examples/init.d/redhat/vnstat +++ b/examples/init.d/redhat/vnstat @@ -23,7 +23,7 @@ VNSTATD_BIN=/usr/sbin/vnstatd RETVAL=0 prog=vnstatd -pidfile=/var/run/vnstat.pid +pidfile=/var/run/vnstat/vnstat.pid start() {