3 # netdata Real-time charts for system monitoring
5 # description: Netdata is a daemon that collects data in realtime (per second)
6 # and presents a web site to view and analyze them. The presentation
7 # is also real-time and full of interactive charts that precisely
8 # render all collected values.
12 . /etc/rc.d/init.d/functions
15 DAEMON_PATH=@sbindir_POST@
16 PIDFILE=@localstatedir_POST@/$DAEMON.pid
17 DAEMONOPTS="-pidfile $PIDFILE"
22 echo "Starting $DAEMON..."
23 daemon $DAEMON_PATH/$DAEMON $DAEMONOPTS
31 printf "%-50s" "Stopping $DAEMON..."
32 killproc -p ${PIDFILE} -d ${STOP_TIMEOUT} $DAEMON
34 if [ $RETVAL -eq 0 ]; then
43 if ! service_status > /dev/null; then
54 status -p ${PIDFILE} $DAEMON_PATH/$DAEMON
78 echo "Usage: $0 {start|stop|restart|try-restart|force-reload|status}"