2001-06-16 07:16:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2002-06-13 22:14:37 +00:00
|
|
|
# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
|
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: local
|
2002-06-13 22:14:37 +00:00
|
|
|
# REQUIRE: DAEMON
|
|
|
|
# BEFORE: LOGIN
|
2004-10-07 13:55:26 +00:00
|
|
|
# KEYWORD: shutdown
|
2001-06-16 07:16:14 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="local"
|
|
|
|
start_cmd="local_start"
|
|
|
|
stop_cmd="local_stop"
|
|
|
|
|
|
|
|
local_start()
|
|
|
|
{
|
2002-10-12 07:23:43 +00:00
|
|
|
echo -n 'Starting local daemons:'
|
2001-06-16 07:16:14 +00:00
|
|
|
if [ -f /etc/rc.local ]; then
|
|
|
|
. /etc/rc.local
|
|
|
|
fi
|
2002-10-12 07:23:43 +00:00
|
|
|
echo '.'
|
2001-06-16 07:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local_stop()
|
|
|
|
{
|
2002-10-17 23:46:32 +00:00
|
|
|
echo -n 'Shutting down local daemons:'
|
2001-06-16 07:16:14 +00:00
|
|
|
if [ -f /etc/rc.shutdown.local ]; then
|
|
|
|
. /etc/rc.shutdown.local
|
|
|
|
fi
|
2002-10-12 07:23:43 +00:00
|
|
|
echo '.'
|
2001-06-16 07:16:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|