Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 952 → Rev 953

/alcasar.sh
1469,6 → 1469,26
do
/sbin/chkconfig --add $i
done
# On rajoute une tempo pour relancer radius après le redémarrage de mysqld (bug en cours d'analyse)
cat << EOF > /etc/rc.local
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: rc.local
# X-Mandriva-Compat-Mode
# Default-Start: 2 3 4 5
# Short-Description: Local initialization script
# Description: This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
### END INIT INFO
 
/etc/init.d/mysqld restart
sleep 1
/etc/init.d/radiusd restart
 
touch /var/lock/subsys/local
EOF
# pour éviter les alertes de dépendance entre service.
$SED "s?^# Required-Start.*?# Required-Start: \$local_fs \$network?g" /etc/init.d/mysqld
$SED "s?^# Required-Stop.*?# Required-Stop: \$local_fs \$network?g" /etc/init.d/mysqld