Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 1209 → Rev 1211

/scripts/sbin/alcasar-uninstall.sh
15,10 → 15,15
echo "-----------------------------------------------------------------------------"
echo
#services_stop
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd nfsen
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd
do
[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
done
for i in alcasar-load_balancing.service
do
[ -e /lib/systemd/system/$i ] && systemctl disable $i && systemctl stop $i
done
 
echo "Stop ALCASAR main functions : "
 
#init
213,8 → 218,8
[ -e /etc/logrotate.d/squid ] && rm -f /etc/logrotate.d/squid && echo -n "8, "
[ -e /etc/logrotate.d/radiusd ] && rm -f /etc/logrotate.d/radiusd && echo -n "9, "
[ -e /etc/logrotate.d/ulogd ] && rm -f /etc/logrotate.d/ulogd && echo -n "10, "
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11"
[ -e /lib/systemd/system/alcasar-load_balancing.service ] &&/lib/systemd/system/alcasar-load_balancing.service rm -f && echo -n " ,12"
[ -e /etc/logrotate.d/dnsmasq ] && rm -f /etc/logrotate.d/dnsmasq && echo -n "11, "
[ -e /lib/systemd/system/alcasar-load_balancing.service ] && rm -f /lib/systemd/system/alcasar-load_balancing.service && echo -n "12"
sleep 1
 
#nettoyage (on retire les services supprimés ou remplacés dans la nouvelle version)