mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Move network services to /lib/services. Move init-functions to /lib/lsb. Make /lib/lsb a symlink to /lib/services. Create convenience symlink /etc/init.d->/etc/rc.d/init.d Add help and man pages to ifup/ifdown. Append /run/var/bootlog to /var/log/boot.log at the end of the boot sequence. Add capability to step through the boot scripts at boot time. Optionally allow environment variables in sysconfig directory's console, network, and clock files to be placed in rc.site. Add an optional FASTBOOT parameter to set /fastboot when rebooting. Remove a minor warning message from udev that is triggered by the udev_retry boot script. Add SKIPTMPCLEAN as an optional parameter to skip cleaning /tmp at boot time. Add a page to Chapter 7 documenting rc.site. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9597 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
67 lines
1.4 KiB
Bash
67 lines
1.4 KiB
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin sendsignals
|
|
#
|
|
# Description : Sendsignals Script
|
|
#
|
|
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
|
|
# DJ Lucas - dj@linuxfromscratch.org
|
|
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
|
|
#
|
|
# Version : LFS 7.0
|
|
#
|
|
########################################################################
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: sendsignals
|
|
# Required-Start:
|
|
# Should-Start:
|
|
# Required-Stop: $local_fs swap localnet
|
|
# Should-Stop:
|
|
# Default-Start:
|
|
# Default-Stop: 0 6
|
|
# Short-Description: Attempts to kill remaining processes.
|
|
# Description: Attempts to kill remaining processes.
|
|
# X-LFS-Provided-By: LFS
|
|
### END INIT INFO
|
|
|
|
. /lib/lsb/init-functions
|
|
|
|
case "${1}" in
|
|
stop)
|
|
log_info_msg "Sending all processes the TERM signal..."
|
|
killall5 -15
|
|
error_value=${?}
|
|
|
|
sleep ${KILLDELAY}
|
|
|
|
if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
|
|
log_success_msg
|
|
else
|
|
log_failure_msg
|
|
fi
|
|
|
|
log_info_msg "Sending all processes the KILL signal..."
|
|
killall5 -9
|
|
error_value=${?}
|
|
|
|
sleep ${KILLDELAY}
|
|
|
|
if [ "${error_value}" = 0 -o "${error_value}" = 2 ]; then
|
|
log_success_msg
|
|
else
|
|
log_failure_msg
|
|
fi
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {stop}"
|
|
exit 1
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|
|
|
|
# End sendsignals
|