summaryrefslogtreecommitdiffstats
path: root/contrib/sles11/netdata.init
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-14 18:12:14 +0000
commitbb50acdcb8073654ea667b8c0272e335bd43f844 (patch)
tree1e00c8a29871426f8182658928dcb62e42d57ce8 /contrib/sles11/netdata.init
parentReleasing debian version 1.33.1-1. (diff)
downloadnetdata-bb50acdcb8073654ea667b8c0272e335bd43f844.tar.xz
netdata-bb50acdcb8073654ea667b8c0272e335bd43f844.zip
Merging upstream version 1.34.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'contrib/sles11/netdata.init')
-rwxr-xr-xcontrib/sles11/netdata.init65
1 files changed, 0 insertions, 65 deletions
diff --git a/contrib/sles11/netdata.init b/contrib/sles11/netdata.init
deleted file mode 100755
index 3081c427..00000000
--- a/contrib/sles11/netdata.init
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: netdata
-# Required-Start: $all
-# Should-Start:
-# Required-Stop: $all
-# Should-Stop:
-# Default-Start: 2 3 5
-# Default-Stop:
-# Short-Description: Start and stop the netdata real-time monitoring server daemon
-# Description: Controls the main netdata monitoring server daemon "netdata".
-### END INIT INFO
-
-DAEMON="netdata"
-DAEMON_BIN="/usr/sbin/${DAEMON}"
-DAEMON_PID="/var/run/${DAEMON}.pid"
-DAEMON_ARGS=""
-
-. /etc/rc.status
-rc_reset
-
-if [ ! -x $DAEMON_BIN ]; then
- echo -n >&2 "${DAEMON} binary is not installed. "
- rc_status -s
- exit 5
-fi
-
-case "$1" in
- start)
- echo -n "Starting $DAEMON"
- /sbin/startproc $DAEMON_BIN $DAEMON_ARGS
- rc_status -v
- ;;
-
- stop)
- echo -n "Stopping $DAEMON"
- /sbin/killproc $DAEMON_BIN
- rc_status -v
- ;;
-
- reload)
- # netdata: HUP reopen log files, USR1 save DB, USR2 reload health config
- echo -n "Reloading $DAEMON config"
- /sbin/killproc -USR2 $DAEMON_BIN
- ;;
-
- restart)
- $0 stop
- $0 start
- ;;
-
- status)
- echo -n "Checking $DAEMON"
- /sbin/checkproc $DAEMON_BIN
- rc_status -v
- ;;
-
- *)
- echo "Usage: $0 {start|stop|status|reload|restart}"
- exit 1
- ;;
-
-esac
-rc_exit