Menu

[r2010]: / trunk / etc / rc.d / local  Maximize  Restore  History

Download this file

38 lines (31 with data), 584 Bytes

#!/bin/sh
#
# $NetBSD: local,v 1.6 2002/03/22 04:33:59 thorpej Exp $
# $FreeBSD: src/etc/rc.d/local,v 1.6 2004/10/07 13:55:26 mtm Exp $
#

# PROVIDE: local
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name="local"
start_cmd="local_start"
stop_cmd="local_stop"

local_start()
{
	echo -n 'Starting local daemons:'
	if [ -f /etc/rc.local ]; then
		. /etc/rc.local
	fi
	echo '.'
}

local_stop()
{
	echo -n 'Shutting down local daemons:'
	if [ -f /etc/rc.shutdown.local ]; then
		. /etc/rc.shutdown.local
	fi
	echo '.'
}

load_rc_config $name
run_rc_command "$1"
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.