aboutsummaryrefslogtreecommitdiff
path: root/rc.multi
blob: 94c2dbaa343b6b14bc1f017e7b7d059c69773d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# /etc/rc.multi
#

. /etc/rc.conf
. /etc/rc.d/functions

# Start daemons
for daemon in "${DAEMONS[@]}"; do
	if [[ `echo $daemon | grep '^[^\!]' | wc -l` -eq 1 ]]; then
		if [[ `echo $daemon | grep '^[^\@]' | wc -l` -eq 1 ]]; then
			/etc/rc.d/$daemon start
		else
			stat_bkgd "Starting ${daemon:1}"
			(/etc/rc.d/${daemon:1} start) &>/dev/null &
		fi
	fi
done

# Load sysctl variables if sysctl.conf is present
[ -r /etc/sysctl.conf ] && /sbin/sysctl -q -p &>/dev/null

if [ -x /etc/rc.local ]; then
	/etc/rc.local
fi

# End of file
# vim: set ts=2 noet: