27 lines
467 B
Plaintext
27 lines
467 B
Plaintext
![]() |
#!/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
|