commit a222ced2d7a664ea4c6908ad05057699f87a8bb5
parent 5d7fb1c0d5b43c4a92f9bbeed5483daf9e8399e7
Author: Frederic Cambus <fred@statdns.com>
Date: Wed, 23 Nov 2022 12:45:43 +0100
Remove the Debian init script and its installation instructions.
Please use Systemd instead.
Diffstat:
M | README.md | | | 11 | ----------- |
D | debian/rrda | | | 60 | ------------------------------------------------------------ |
2 files changed, 0 insertions(+), 71 deletions(-)
diff --git a/README.md b/README.md
@@ -63,17 +63,6 @@ To launch the daemon at startup, run:
systemctl enable rrda
-### Debian init script
-
-RRDA is bundled with a Debian init script, see: `debian/rrda`
-
-Copy the `debian/rrda` file in `/etc/init.d` and modify the line containing
-`DAEMON=rrda` to specify the path to your RRDA binary.
-
-To launch the daemon at startup, run:
-
- update-rc.d rrda defaults
-
### FreeBSD rc.d script
RRDA is bundled with a FreeBSD rc.d script, see: `freebsd/rrda`
diff --git a/debian/rrda b/debian/rrda
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides: rrda
-# Required-Start: $all
-# Required-Stop: $all
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: starts the rrda server
-# Description: starts rrda using start-stop-daemon
-### END INIT INFO
-
-PATH=/sbin:/bin:/usr/sbin:/usr/bin
-
-HOST=127.0.0.1
-PORT=8080
-
-DAEMON=rrda
-DAEMON_OPTS="-host=$HOST -port=$PORT"
-PIDFILE=/var/run/rrda.pid
-NAME=rrda
-
-USER=nobody
-GROUP=nogroup
-
-test -f $DAEMON || exit 0
-
-set -e
-
-case "$1" in
- start)
- echo -n "Starting rrda server: "
- start-stop-daemon --start --chuid $USER:$GROUP \
- --make-pidfile --background --pidfile $PIDFILE \
- --exec $DAEMON -- $DAEMON_OPTS
- echo "$NAME."
- ;;
-
- stop)
- echo -n "Stopping rrda server: "
- start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
- rm -f $PIDFILE
- echo "$NAME."
- ;;
-
- restart)
- echo -n "Restarting rrda server:\n"
- $0 stop
- sleep 1
- $0 start
- ;;
-
- *)
- echo "Usage: $NAME {start|stop|restart}" >&2
- exit 1
- ;;
-esac
-
-exit 0
-\ No newline at end of file