2006-02-23 16:26:10 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# /etc/rc.multi: multi-user startup script
|
|
|
|
#
|
|
|
|
|
|
|
|
# Load configuration
|
|
|
|
. /etc/rc.conf
|
|
|
|
|
2007-03-14 20:21:15 +01:00
|
|
|
# Run fixes startup file
|
|
|
|
if [ -x /etc/rc.fix ]; then
|
|
|
|
/etc/rc.fix
|
|
|
|
fi
|
|
|
|
|
2006-02-23 16:26:10 +01:00
|
|
|
# Start services
|
|
|
|
if [ "${SERVICES[*]}" ]; then
|
|
|
|
echo -n "starting services:"
|
|
|
|
for service in ${SERVICES[@]}; do
|
|
|
|
echo -n " $service"
|
|
|
|
/etc/rc.d/$service start &> /tmp/rc.$$ || echo -n "[ERROR]"
|
|
|
|
/usr/bin/logger -t $service -f /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
|