X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=system%2Fnetdata-init-d.in;h=edda9950f0488f707261686681d776d117f3db18;hb=81b986a426cf51002a2073085e83a9a83bf957be;hp=3e82d0d366a359b0ab8bbeaa10410fdc72826019;hpb=693ce95ff61aaa8c399c7c9e27ff5d3cd50e8a62;p=netdata.git diff --git a/system/netdata-init-d.in b/system/netdata-init-d.in old mode 100755 new mode 100644 index 3e82d0d3..edda9950 --- a/system/netdata-init-d.in +++ b/system/netdata-init-d.in @@ -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