5.0-pre2 release
[linux_from_scratch.git] / bootscripts / rc.d / init.d / template
blobbc25c8d6aa35413f0e9a4d652b405cdb6a06d4ac
1 #!/bin/bash
2 # Begin $rc_base/init.d/
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 source /etc/sysconfig/rc
8 source $rc_functions
10 case "$1" in
11 start)
12 echo "Starting..."
13 loadproc
16 stop)
17 echo "Stopping..."
18 killproc
21 reload)
22 echo "Reloading..."
23 reloadproc
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
32 status)
33 statusproc
37 echo "Usage: $0 {start|stop|reload|restart|status}"
38 exit 1
40 esac
42 # End $rc_base/init.d/