From 7e6d5d0819b204f2fdc3d96d78e5b0bba3665cfc Mon Sep 17 00:00:00 2001 From: manuelkamp <48356947+manuelkamp@users.noreply.github.com> Date: Tue, 21 Dec 2021 23:02:55 +0100 Subject: [PATCH] Delete initscripts directory --- initscripts/README | 15 ------- initscripts/sysVinit/hddledPi | 48 ----------------------- initscripts/sysVinit/multiactledPi | 48 ----------------------- initscripts/sysVinit/netledPi | 48 ----------------------- initscripts/systemd/hddledPi.service | 9 ----- initscripts/systemd/multiactledPi.service | 10 ----- initscripts/systemd/netledPi.service | 10 ----- 7 files changed, 188 deletions(-) delete mode 100644 initscripts/README delete mode 100644 initscripts/sysVinit/hddledPi delete mode 100644 initscripts/sysVinit/multiactledPi delete mode 100644 initscripts/sysVinit/netledPi delete mode 100644 initscripts/systemd/hddledPi.service delete mode 100644 initscripts/systemd/multiactledPi.service delete mode 100644 initscripts/systemd/netledPi.service diff --git a/initscripts/README b/initscripts/README deleted file mode 100644 index 6b129f4..0000000 --- a/initscripts/README +++ /dev/null @@ -1,15 +0,0 @@ -Init scripts - to make the programs start automatically at boot. - -If you are running a current Raspbian (Jessie or later) with systemd: -Copy the systemd/*.service files to the /etc/systemd/system/ directory, and then run -sudo systemctl daemon-reload -sudo systemctl enable hddledPi.service -sudo systemctl enable netledPi.service - -If you are running an older Raspbian (Wheezy) with SysV init: -Copy the sysVinit/* files to the /etc/init.d/ directory, and then run -sudo update-rc.d enable hddledPi -sudo update-rc.d enable netledPi - - -Creating init scripts for actledPi is left as an exercise for the reader ;-) diff --git a/initscripts/sysVinit/hddledPi b/initscripts/sysVinit/hddledPi deleted file mode 100644 index aa0cba4..0000000 --- a/initscripts/sysVinit/hddledPi +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: hddledPi -# Required-Start: $local_fs -# Required-Stop: -# Should-Start: -# Default-Start: 2 3 4 5 -# Default-Stop: -# Short-Description: Start the hddledPi daemon -# Description: A daemon that blinks an LED connected to a GPIO pin on disk activity -### END INIT INFO - -PATH=/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin -NAME=hddledPi -DESC="Disk activity light" -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions -. /lib/init/vars.sh - -do_start () { - # Start disk activity light - log_daemon_msg "Starting $DESC" "$NAME" - hddledPi -d -r 20 - log_end_msg $? -} - - -case "$1" in - start|"") - do_start - ;; - restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" - killall hddledPi - log_end_msg $? - ;; - *) - echo "Usage: hddledPi [start|stop]" >&2 - exit 3 - ;; -esac - -: diff --git a/initscripts/sysVinit/multiactledPi b/initscripts/sysVinit/multiactledPi deleted file mode 100644 index 7da09b2..0000000 --- a/initscripts/sysVinit/multiactledPi +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: multiactledPi -# Required-Start: $local_fs -# Required-Stop: -# Should-Start: -# Default-Start: 2 3 4 5 -# Default-Stop: -# Short-Description: Start the multiactledPi daemon -# Description: A daemon that blinks LEDs connected to GPIO pins on disk and network activity -### END INIT INFO - -PATH=/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin -NAME=multiactledPi -DESC="Disk and network activity lights" -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions -. /lib/init/vars.sh - -do_start () { - # Start disk activity light - log_daemon_msg "Starting $DESC" "$NAME" - multiactledPi -d -r 20 - log_end_msg $? -} - - -case "$1" in - start|"") - do_start - ;; - restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" - killall multiactledPi - log_end_msg $? - ;; - *) - echo "Usage: multiactledPi [start|stop]" >&2 - exit 3 - ;; -esac - -: diff --git a/initscripts/sysVinit/netledPi b/initscripts/sysVinit/netledPi deleted file mode 100644 index eed5077..0000000 --- a/initscripts/sysVinit/netledPi +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: netledPi -# Required-Start: $network -# Required-Stop: -# Should-Start: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start the netledPi daemon -# Description: A daemon that blinks an LED connected to a GPIO pin on network activity -### END INIT INFO - -PATH=/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin -NAME=netledPi -DESC="Network activity light" -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions -. /lib/init/vars.sh - -do_start () { - # Start network activity light - log_daemon_msg "Starting $DESC" "$NAME" - netledPi -d - log_end_msg $? -} - - -case "$1" in - start|"") - do_start - ;; - restart|reload|force-reload) - echo "Error: argument '$1' not supported" >&2 - exit 3 - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" - killall netledPi - log_end_msg $? - ;; - *) - echo "Usage: netledPi [start|stop]" >&2 - exit 3 - ;; -esac - -: diff --git a/initscripts/systemd/hddledPi.service b/initscripts/systemd/hddledPi.service deleted file mode 100644 index 717595c..0000000 --- a/initscripts/systemd/hddledPi.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=hddledPi mass storage activity indicator - -[Service] -Type=forking -ExecStart=/usr/bin/hddledPi -d - -[Install] -WantedBy=basic.target diff --git a/initscripts/systemd/multiactledPi.service b/initscripts/systemd/multiactledPi.service deleted file mode 100644 index bfebe98..0000000 --- a/initscripts/systemd/multiactledPi.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=multiactledPi disk and network activity indicator -After=network.target - -[Service] -Type=forking -ExecStart=/usr/bin/multiactledPi -d - -[Install] -WantedBy=default.target diff --git a/initscripts/systemd/netledPi.service b/initscripts/systemd/netledPi.service deleted file mode 100644 index 5815423..0000000 --- a/initscripts/systemd/netledPi.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=netledPi network activity indicator -After=network.target - -[Service] -Type=forking -ExecStart=/usr/bin/netledPi -d - -[Install] -WantedBy=default.target