]> TLD Linux GIT Repositories - rc-scripts.git/blob - rc.d/init.d/local
- from PLD
[rc-scripts.git] / rc.d / init.d / local
1 #!/bin/sh
2 #
3 # local Invoke custom scripts at startup
4 # chkconfig:    2345 99 01
5 #
6 # description:  This script will be executed *after* all the other init \
7 # scripts. You can put your own initialization stuff in here if you don't \
8 # want to do the full Sys V style init stuff.
9 #
10
11 # Source function library.
12 . /etc/rc.d/init.d/functions
13
14 # See how we were called.
15 case "$1" in
16   start)
17         msg_starting "rc.local"
18         . /etc/rc.d/rc.local
19         ok
20         touch /var/lock/subsys/local
21         ;;
22   stop)
23         rm -f /var/lock/subsys/local >/dev/null 2>&1
24         ;;
25   status)
26         if [ -f /var/lock/subsys/local ]; then
27                 nls 'rc.local has been started'
28         else
29                 nls 'rc.local has not been started'
30         fi
31         ;;
32   *)
33         msg_usage "$0 {start|stop|status}"
34         exit 3
35 esac
36
37 exit 0