]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - etc/rc.d/local
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / etc / rc.d / local
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: local
7 # REQUIRE: DAEMON
8 # BEFORE:  LOGIN
9 # KEYWORD: shutdown
10
11 . /etc/rc.subr
12
13 name="local"
14 start_cmd="local_start"
15 stop_cmd="local_stop"
16
17 local_start()
18 {
19         echo -n 'Starting local daemons:'
20         if [ -f /etc/rc.local ]; then
21                 . /etc/rc.local
22         fi
23         echo '.'
24 }
25
26 local_stop()
27 {
28         echo -n 'Shutting down local daemons:'
29         if [ -f /etc/rc.shutdown.local ]; then
30                 . /etc/rc.shutdown.local
31         fi
32         echo '.'
33 }
34
35 load_rc_config $name
36 run_rc_command "$1"