#!/bin/bash # # /etc/rc.multi: multi-user startup script # # Load configuration . /etc/rc.conf # Run fixes startup file if [ -x /etc/rc.fix ]; then /etc/rc.fix fi echo_err () { echo -n -e "\033[00;31m\033[66G!$1!\033[00m" echo -e "\033[76G\033[00;01;31m[X]\033[00m" } echo_ok () { echo -e "\033[76G\033[00;01;32m[V]\033[00m" } # Start services if [ "$SYSLOG" -o "${SERVICES[*]}" ]; then echo -e "\033[00;01m > Starting services:\033[00m" if [ -f /etc/rc.d/$SYSLOG -a -x /etc/rc.d/$SYSLOG ]; then echo -e -n "\033[00m $SYSLOG" /etc/rc.d/$SYSLOG start &> /dev/null || echo_err fi for service in ${SERVICES[@]}; do echo -e -n "\033[00m > $service" if /etc/rc.d/$service start &> /tmp/rc.$$; then echo_ok else echo_err $? fi /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