core/rc/rc.multi
2006-02-23 15:26:10 +00:00

27 lines
467 B
Bash
Executable File

#!/bin/bash
#
# /etc/rc.multi: multi-user startup script
#
# Load configuration
. /etc/rc.conf
# 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