810,8 → 810,7 |
[ -e /etc/raddb/sql/mysql/dialup.conf.default ] || cp /etc/raddb/sql/mysql/dialup.conf /etc/raddb/sql/mysql/dialup.conf.default |
cp -f $DIR_CONF/dialup.conf /etc/raddb/sql/mysql/dialup.conf |
# insures that mysql is up before radius start |
$SED "s?^# Should-Start.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd |
$SED "s?^# Should-Stop.*?# Should-Stop: \$network mysqld?" /etc/init.d/radiusd |
$SED "s?^After=.*?After=syslog.target network.target mysqld.service?g" /lib/systemd/system/radiusd.service |
|
} # End param_radius () |
|
1540,11 → 1539,31 |
/sbin/chkconfig --add $i |
done |
|
cat << EOF > /etc/rc.local |
/usr/local/sbin/alcasar-load_balancing.sh start & |
sleep 3 |
service radiusd restart |
cat << EOF > /lib/systemd/system/alcasar-load_balancing.service |
# This file is part of systemd. |
# |
# systemd is free software; you can redistribute it and/or modify it |
# under the terms of the GNU General Public License as published by |
# the Free Software Foundation; either version 2 of the License, or |
# (at your option) any later version. |
|
# This unit lauches alcasar-load-balancing.sh script. |
[Unit] |
Description=alcasar-load_balancing.sh execution |
After=network.target iptables.service |
|
[Service] |
Type=oneshot |
RemainAfterExit=yes |
ExecStart=/usr/local/sbin/alcasar-load_balancing.sh start |
ExecStop=/usr/local/sbin/alcasar-load_balancing.sh stop |
TimeoutSec=0 |
SysVStartPriority=99 |
|
[Install] |
WantedBy=multi-user.target |
EOF |
systemctl enable alcasar-load_balancing.service |
|
# On applique les préconisations ANSSI |
# Apply French Security Agency rules |