1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/local 174438 2007-12-08 07:20:23Z dougb $
| 3# $FreeBSD: head/etc/rc.d/local 179931 2008-06-22 16:23:39Z mtm $
|
4# 5 6# PROVIDE: local 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: shutdown 10 11. /etc/rc.subr 12 13name="local" 14start_cmd="local_start" 15stop_cmd="local_stop" 16 17local_start() 18{
| 4# 5 6# PROVIDE: local 7# REQUIRE: DAEMON 8# BEFORE: LOGIN 9# KEYWORD: shutdown 10 11. /etc/rc.subr 12 13name="local" 14start_cmd="local_start" 15stop_cmd="local_stop" 16 17local_start() 18{
|
19 echo -n 'Starting local daemons:'
| |
20 if [ -f /etc/rc.local ]; then
| 19 if [ -f /etc/rc.local ]; then
|
| 20 echo -n 'Starting local daemons:'
|
21 . /etc/rc.local
| 21 . /etc/rc.local
|
| 22 echo '.'
|
22 fi
| 23 fi
|
23 echo '.'
| |
24} 25 26local_stop() 27{
| 24} 25 26local_stop() 27{
|
28 echo -n 'Shutting down local daemons:'
| |
29 if [ -f /etc/rc.shutdown.local ]; then
| 28 if [ -f /etc/rc.shutdown.local ]; then
|
| 29 echo -n 'Shutting down local daemons:'
|
30 . /etc/rc.shutdown.local
| 30 . /etc/rc.shutdown.local
|
| 31 echo '.'
|
31 fi
| 32 fi
|
32 echo '.'
| |
33} 34 35load_rc_config $name 36run_rc_command "$1"
| 33} 34 35load_rc_config $name 36run_rc_command "$1"
|