Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/local
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: local | # PROVIDE: local | ||||
# REQUIRE: DAEMON | # REQUIRE: DAEMON | ||||
# BEFORE: LOGIN | # BEFORE: LOGIN | ||||
# KEYWORD: shutdown | # KEYWORD: shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="local" | name="local" | ||||
desc="Run /etc/rc.local and /etc/shutdown.local" | |||||
start_cmd="local_start" | start_cmd="local_start" | ||||
stop_cmd="local_stop" | stop_cmd="local_stop" | ||||
local_start() | local_start() | ||||
{ | { | ||||
if [ -f /etc/rc.local ]; then | if [ -f /etc/rc.local ]; then | ||||
echo -n 'Starting local daemons:' | echo -n 'Starting local daemons:' | ||||
. /etc/rc.local | . /etc/rc.local | ||||
Show All 15 Lines |