]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - etc/rc.d/local
This commit was generated by cvs2svn to compensate for changes in r170754,
[FreeBSD/FreeBSD.git] / etc / rc.d / local
1 #!/bin/sh
2 #
3 # $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
4 # $FreeBSD$
5 #
6
7 # PROVIDE: local
8 # REQUIRE: DAEMON
9 # BEFORE:  LOGIN
10 # KEYWORD: shutdown
11
12 . /etc/rc.subr
13
14 name="local"
15 start_cmd="local_start"
16 stop_cmd="local_stop"
17
18 local_start()
19 {
20         echo -n 'Starting local daemons:'
21         if [ -f /etc/rc.local ]; then
22                 . /etc/rc.local
23         fi
24         echo '.'
25 }
26
27 local_stop()
28 {
29         echo -n 'Shutting down local daemons:'
30         if [ -f /etc/rc.shutdown.local ]; then
31                 . /etc/rc.shutdown.local
32         fi
33         echo '.'
34 }
35
36 load_rc_config $name
37 run_rc_command "$1"