Remove old start cruft.

This commit is contained in:
Darren 'Tadgy' Austin 2022-08-24 00:45:13 +01:00
commit 4398d1afff
2 changed files with 6 additions and 28 deletions

View file

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
# /etc/rc.d/rc.local - Local system startup script.
# Copyright (c) 2005-2022: # Copyright (c) 2005-2022:
# Darren 'Tadgy' Austin <darren (at) afterdark.org.uk> # Darren 'Tadgy' Austin <darren (at) afterdark.org.uk>
# Licensed under the terms of the GNU General Public License version 3. # Licensed under the terms of the GNU General Public License version 3.
@ -31,34 +30,11 @@
# Start Exim. # Start Exim.
[[ -x /etc/rc.d/rc.exim ]] && /etc/rc.d/rc.exim start [[ -x /etc/rc.d/rc.exim ]] && /etc/rc.d/rc.exim start
# FIXME: Move the lumberjack starts into the rc.ds?
# Start proftpd. # Start proftpd.
[[ -x /etc/rc.d/rc.proftpd ]] && { [[ -x /etc/rc.d/rc.proftpd ]] && /etc/rc.d/rc.proftpd start
[[ -x /opt/bin/lumberjack ]] && {
if [[ -x /usr/bin/daemon ]]; then
/usr/bin/daemon -N -n lumberjack-ftpd -r -a 60 -A 5 -L 300 -o daemon.debug -- /opt/bin/lumberjack -u logger -z -r -i /run/slackware.uk-ftpd.log \
-o logger:ftp -mp 006 -l logs/ftpd-transfers.log /data/sites/slackware.uk logs/%Y/%m/ftpd-transfers.log
else
/opt/bin/lumberjack -u logger -z -r -i /run/slackware.uk-ftpd.log -o logger:ftp -mp 006 -l logs/ftpd-transfers.log /data/sites/slackware.uk \
logs/%Y/%m/ftpd-transfers.log &
fi
}
/etc/rc.d/rc.proftpd start
}
# Start the rsync daemon. # Start the rsync daemon.
[[ -x /etc/rc.d/rc.rsyncd ]] && { [[ -x /etc/rc.d/rc.rsyncd ]] && /etc/rc.d/rc.rsyncd start
[[ -x /opt/bin/lumberjack ]] && {
if [[ -x /usr/bin/daemon ]]; then
/usr/bin/daemon -N -n lumberjack-rsyncd -r -a 60 -A 5 -L 300 -o daemon.debug -- /opt/bin/lumberjack -u logger -z -r -i /run/rsyncd.log \
-o logger:mirror -mp 006 -l logs/rsyncd-transfers.log /data/sites/slackware.uk logs/%Y/%m/rsyncd-transfers.log
else
/opt/bin/lumberjack -u logger -z -r -i /run/rsyncd.log -o logger:mirror -mp 006 -l logs/rsyncd-transfers.log /data/sites/slackware.uk \
logs/%Y/%m/rsyncd-transfers.log &
fi
}
/etc/rc.d/rc.rsyncd start
}
# Start the bandwidth bar generator. # Start the bandwidth bar generator.
[ -x /etc/rc.d/rc.bwbar ] && /etc/rc.d/rc.bwbar start [ -x /etc/rc.d/rc.bwbar ] && /etc/rc.d/rc.bwbar start

View file

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
# /etc/rc.d/rc.local_shutdown - Local system shutdown script. # Version: 0.2.0
# This script will be run when the system is shutdown or rebooted. # Copyright (c) 2022:
# Darren 'Tadgy' Austin <darren (at) afterdark.org.uk>
# Licensed under the terms of the GNU General Public License version 3.
# Notify that the server is shutting down. # Notify that the server is shutting down.
CONFIG_FILE="server" /opt/bin/pushover -T "${HOSTNAME%%.*}" -p 1 -m "Shutting down." CONFIG_FILE="server" /opt/bin/pushover -T "${HOSTNAME%%.*}" -p 1 -m "Shutting down."