]> granicus.if.org Git - vnstat/commitdiff
fix pid file path in debian and redhat init.d example files
authorTeemu Toivola <git@humdi.net>
Thu, 16 May 2019 20:54:27 +0000 (23:54 +0300)
committerTeemu Toivola <git@humdi.net>
Thu, 16 May 2019 20:54:27 +0000 (23:54 +0300)
CHANGES
examples/init.d/debian/vnstat
examples/init.d/redhat/vnstat

diff --git a/CHANGES b/CHANGES
index 87454de46926dfe21549a603cf7670fb96cf38c2..42be9d7193efb977bf264e20721a8d1866b0f9bf 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,5 @@
 2.3 / <not released yet>
+
  - 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,
index 10723a2e89224ec268fd39bb1fab3635d45a5296..2e97bb17e75890e79f097c101120b32473b80ef9 100755 (executable)
@@ -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
index 04b6abf9a30182cc32ecbe889c015165fe25c60e..5adef68a490e1a6233d0955f9b55b5155729d50b 100755 (executable)
@@ -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()
 {