rc.multi (829B)
1 #!/bin/bash 2 # 3 # /etc/rc.multi: multi-user startup script 4 # 5 6 # Load configuration 7 . /etc/rc.conf 8 9 # Start services 10 if [ "$SYSLOG" -o "${SERVICES[*]}" ]; then 11 echo -n "starting services:" 12 if [ -f /etc/rc.d/$SYSLOG -a -x /etc/rc.d/$SYSLOG ]; then 13 echo -n " $SYSLOG" 14 /etc/rc.d/$SYSLOG start &> /dev/null || echo -n "[ERROR]" 15 fi 16 for service in ${SERVICES[@]}; do 17 echo -n " $service" 18 /etc/rc.d/$service start &> /tmp/rc.$$ || echo -n "[ERROR]" 19 /usr/bin/logger -t $service -f /tmp/rc.$$ 20 /bin/rm -f /tmp/rc.$$ 21 done 22 echo 23 fi 24 25 # Run local startup script 26 if [ -x /etc/rc.local ]; then 27 /etc/rc.local 28 fi 29 30 /sbin/respawn /sbin/agetty -8 -s 38400 tty1 linux 31 /sbin/respawn /sbin/agetty -8 -s 38400 tty2 linux 32 /sbin/respawn /sbin/agetty -8 -s 38400 tty3 linux 33 /sbin/respawn /sbin/agetty -8 -s 38400 tty4 linux 34 35 # End of file