2009-10-08 03:40:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# /etc/rc.multi
|
|
|
|
#
|
|
|
|
|
|
|
|
. /etc/rc.conf
|
|
|
|
. /etc/rc.d/functions
|
|
|
|
|
2010-04-05 01:16:29 +00:00
|
|
|
run_hook multi_start
|
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
# Load sysctl variables if sysctl.conf is present
|
|
|
|
[ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null
|
|
|
|
|
|
|
|
# Start daemons
|
|
|
|
for daemon in "${DAEMONS[@]}"; do
|
|
|
|
if [ "$daemon" = "${daemon#!}" ]; then
|
|
|
|
if [ "$daemon" = "${daemon#@}" ]; then
|
|
|
|
start_daemon $daemon
|
|
|
|
else
|
|
|
|
start_daemon_bkgd ${daemon:1}
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ -x /etc/rc.local ]; then
|
|
|
|
/etc/rc.local
|
|
|
|
fi
|
|
|
|
|
2010-04-05 01:16:29 +00:00
|
|
|
run_hook multi_end
|
|
|
|
|
2011-01-02 05:56:57 +00:00
|
|
|
# vim: set ts=2 noet:
|