CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
util-linux-ng: update to 2.19.1
[crossrootfs.git] / rc / rc.multi
CommitLineData
6dca1d21
JB
1#!/bin/bash
2#
3# /etc/rc.multi: multi-user startup script
4#
5
6# Load configuration
7. /etc/rc.conf
8
9# Run fixes startup file
10if [ -x /etc/rc.fix ]; then
11 /etc/rc.fix
12fi
13
14# Start services
15if [ "$SYSLOG" -o "${SERVICES[*]}" ]; then
16 echo -n "starting services:"
17 if [ -f /etc/rc.d/$SYSLOG -a -x /etc/rc.d/$SYSLOG ]; then
18 echo -n " $SYSLOG"
19 /etc/rc.d/$SYSLOG start &> /dev/null || echo -n "[ERROR]"
20 fi
21 for service in ${SERVICES[@]}; do
22 echo -n " $service"
23 /etc/rc.d/$service start &> /tmp/rc.$$ || echo -n "[ERROR]"
24 /usr/bin/logger -t $service -f /tmp/rc.$$
25 /bin/rm -f /tmp/rc.$$
26 done
27 echo
28fi
29
30# Run local startup script
31if [ -x /etc/rc.local ]; then
32 /etc/rc.local
33fi
34
35# End of file