source: bootscripts/lfs/init.d/template@ 9d83019

11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 bdubbs/gcc13 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 9d83019 was f874424, checked in by Bruce Dubbs <bdubbs@…>, 13 years ago

Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site.
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

  • Property mode set to 100644
File size: 882 bytes
Line 
1#!/bin/sh
2########################################################################
3# Begin scriptname
4#
5# Description :
6#
7# Authors :
8#
9# Version : LFS x.x
10#
11# Notes :
12#
13########################################################################
14
15### BEGIN INIT INFO
16# Provides: template
17# Required-Start:
18# Should-Start:
19# Required-Stop:
20# Should-Stop:
21# Default-Start:
22# Default-Stop:
23# Short-Description:
24# Description:
25# X-LFS-Provided-By:
26### END INIT INFO
27
28. /lib/lsb/init-functions
29
30case "${1}" in
31 start)
32 log_info_msg "Starting..."
33 start_daemon fully_qualified_path
34 ;;
35
36 stop)
37 log_info_msg "Stopping..."
38 killproc fully_qualified_path
39 ;;
40
41 restart)
42 ${0} stop
43 sleep 1
44 ${0} start
45 ;;
46
47 *)
48 echo "Usage: ${0} {start|stop|restart}"
49 exit 1
50 ;;
51esac
52
53exit 0
54
55# End scriptname
Note: See TracBrowser for help on using the repository browser.