Delete initscripts directory

This commit is contained in:
manuelkamp 2021-12-21 23:02:55 +01:00 committed by GitHub
parent 52cded1b70
commit 7e6d5d0819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 188 deletions

View File

@ -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 ;-)

View File

@ -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
:

View File

@ -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
:

View File

@ -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
:

View File

@ -1,9 +0,0 @@
[Unit]
Description=hddledPi mass storage activity indicator
[Service]
Type=forking
ExecStart=/usr/bin/hddledPi -d
[Install]
WantedBy=basic.target

View File

@ -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

View File

@ -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