2007-04-05 11:18:42 +00:00
|
|
|
#!/sbin/runscript
|
2008-01-11 11:45:59 +00:00
|
|
|
# Copyright 2007-2008 Roy Marples
|
2007-11-14 15:22:04 +00:00
|
|
|
# All rights reserved
|
|
|
|
|
2007-12-14 14:12:38 +00:00
|
|
|
description="Executes user commands in /etc/conf.d/local"
|
2007-07-10 19:09:41 +00:00
|
|
|
|
2008-01-11 12:13:46 +00:00
|
|
|
depend()
|
|
|
|
{
|
2007-04-05 11:18:42 +00:00
|
|
|
after *
|
2007-12-05 17:48:07 +00:00
|
|
|
keywords notimeout
|
2007-04-05 11:18:42 +00:00
|
|
|
}
|
|
|
|
|
2008-01-11 12:13:46 +00:00
|
|
|
start()
|
|
|
|
{
|
2007-04-05 11:18:42 +00:00
|
|
|
ebegin "Starting local"
|
|
|
|
|
2007-12-14 14:12:38 +00:00
|
|
|
if type local_start >/dev/null 2>&1; then
|
|
|
|
local_start
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Support old configs
|
2007-11-28 15:45:03 +00:00
|
|
|
if [ -e /etc/conf.d/local.start ]; then
|
2007-04-05 11:18:42 +00:00
|
|
|
. /etc/conf.d/local.start
|
|
|
|
fi
|
|
|
|
|
|
|
|
eend $? "Failed to start local"
|
|
|
|
}
|
|
|
|
|
2008-01-11 12:13:46 +00:00
|
|
|
stop()
|
|
|
|
{
|
2007-04-05 11:18:42 +00:00
|
|
|
ebegin "Stopping local"
|
|
|
|
|
2007-12-14 14:12:38 +00:00
|
|
|
if type local_start >/dev/null 2>&1; then
|
|
|
|
local_stop
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Support old configs
|
2007-11-28 15:45:03 +00:00
|
|
|
if [ -e /etc/conf.d/local.stop ]; then
|
2007-04-05 11:18:42 +00:00
|
|
|
. /etc/conf.d/local.stop
|
|
|
|
fi
|
|
|
|
|
|
|
|
eend $? $"Failed to stop local"
|
|
|
|
}
|