Delete initscripts directory
This commit is contained in:
parent
52cded1b70
commit
7e6d5d0819
@ -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 ;-)
|
@ -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
|
||||
|
||||
:
|
@ -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
|
||||
|
||||
:
|
@ -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
|
||||
|
||||
:
|
@ -1,9 +0,0 @@
|
||||
[Unit]
|
||||
Description=hddledPi mass storage activity indicator
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/hddledPi -d
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user