]> arthur.barton.de Git - netdata.git/blobdiff - system/netdata-init-d.in
Merge pull request #776 from Busindre/patch-1
[netdata.git] / system / netdata-init-d.in
old mode 100755 (executable)
new mode 100644 (file)
index 3e82d0d..edda995
@@ -1,8 +1,8 @@
 #!/bin/sh
 #
-# netdata      Real-time charts for system monitoring
+# netdata      Real-time performance monitoring, done right
 # chkconfig: 345 99 01
-# description:  Netdata is a daemon that collects data in realtime (per second)
+# description:  Netdata is a daemon that collects data in real-time (per second)
 #               and presents a web site to view and analyze them. The presentation
 #               is also real-time and full of interactive charts that precisely
 #               render all collected values.
@@ -13,8 +13,8 @@
 
 DAEMON="netdata"
 DAEMON_PATH=@sbindir_POST@
-PIDFILE=@localstatedir_POST@/$DAEMON.pid
-DAEMONOPTS="-pidfile $PIDFILE"
+PIDFILE=@localstatedir_POST@/run/$DAEMON.pid
+DAEMONOPTS="-P $PIDFILE"
 STOP_TIMEOUT="10"
 
 service_start()
@@ -42,7 +42,7 @@ condrestart()
 {
        if ! service_status > /dev/null; then
                RETVAL=$1
-               return
+               return $RETVAL
        fi
 
        service_stop