Subversion Repositories ALCASAR

Rev

Rev 952 | Rev 955 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 952 Rev 953
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 952 2012-07-12 06:42:56Z franck $ 
2
#  $Id: alcasar.sh 953 2012-07-12 10:22:04Z franck $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 1467... Line 1467...
1467
# processus lancés par défaut au démarrage
1467
# processus lancés par défaut au démarrage
1468
	for i in ntpd iptables ulogd dnsmasq squid chilli httpd radiusd netfs mysqld dansguardian havp freshclam
1468
	for i in ntpd iptables ulogd dnsmasq squid chilli httpd radiusd netfs mysqld dansguardian havp freshclam
1469
	do
1469
	do
1470
		/sbin/chkconfig --add $i
1470
		/sbin/chkconfig --add $i
1471
	done
1471
	done
-
 
1472
# On rajoute une tempo pour relancer radius après le redémarrage de mysqld (bug en cours d'analyse)
-
 
1473
	cat << EOF > /etc/rc.local
-
 
1474
#!/bin/sh
-
 
1475
#
-
 
1476
### BEGIN INIT INFO
-
 
1477
# Provides: rc.local
-
 
1478
# X-Mandriva-Compat-Mode
-
 
1479
# Default-Start: 2 3 4 5
-
 
1480
# Short-Description: Local initialization script
-
 
1481
# Description: This script will be executed *after* all the other init scripts.
-
 
1482
#              You can put your own initialization stuff in here if you don't
-
 
1483
#              want to do the full Sys V style init stuff.
-
 
1484
### END INIT INFO
-
 
1485
 
-
 
1486
/etc/init.d/mysqld restart
-
 
1487
sleep 1
-
 
1488
/etc/init.d/radiusd restart
-
 
1489
 
-
 
1490
touch /var/lock/subsys/local
-
 
1491
EOF
1472
# pour éviter les alertes de dépendance entre service.
1492
# pour éviter les alertes de dépendance entre service.
1473
	$SED "s?^# Required-Start.*?# Required-Start: \$local_fs \$network?g" /etc/init.d/mysqld
1493
	$SED "s?^# Required-Start.*?# Required-Start: \$local_fs \$network?g" /etc/init.d/mysqld
1474
	$SED "s?^# Required-Stop.*?# Required-Stop: \$local_fs \$network?g" /etc/init.d/mysqld
1494
	$SED "s?^# Required-Stop.*?# Required-Stop: \$local_fs \$network?g" /etc/init.d/mysqld
1475
	$SED "s?^# Should-Start.*?# Should-Start: radiusd ldap?g" /etc/init.d/httpd
1495
	$SED "s?^# Should-Start.*?# Should-Start: radiusd ldap?g" /etc/init.d/httpd
1476
	$SED "s?^# Should-Stop.*?# Should-Stop: radiusd ldap?g" /etc/init.d/httpd
1496
	$SED "s?^# Should-Stop.*?# Should-Stop: radiusd ldap?g" /etc/init.d/httpd