-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.multi
32 lines (28 loc) · 660 Bytes
/
rc.multi
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
30
31
32
#!/bin/sh
#
# /etc/rc.multi: multi-user startup script
#
# Load configuration.
. /etc/rc.conf
# Start services.
if [ "$SYSLOG" ] || [ "$SERVICES" ]; then
printf "starting services:"
if [ -f /etc/rc.d/"$SYSLOG" ] && [ -x /etc/rc.d/"$SYSLOG" ]; then
printf " %s" "$SYSLOG"
/etc/rc.d/"$SYSLOG" start >/dev/null 2>&1 ||
printf "%s" "[ERROR]"
fi
for service in $SERVICES; do
printf " %s" "$service"
/etc/rc.d/"$service" start >/tmp/rc.$$ 2>&1 ||
printf "%s" "[ERROR]"
/usr/bin/logger -t "$service" < /tmp/rc.$$
/bin/rm -f /tmp/rc.$$
done
echo
fi
# Run local startup script.
if [ -x /etc/rc.local ]; then
/etc/rc.local
fi
# End of file.