| 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 |
| 10 | if [ -x /etc/rc.fix ]; then |
| 11 | /etc/rc.fix |
| 12 | fi |
| 13 | |
| 14 | # Start services |
| 15 | if [ "$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 |
| 28 | fi |
| 29 | |
| 30 | # Run local startup script |
| 31 | if [ -x /etc/rc.local ]; then |
| 32 | /etc/rc.local |
| 33 | fi |
| 34 | |
| 35 | # End of file |