Subversion Repositories ALCASAR

Rev

Rev 1056 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1056 Rev 1065
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1056 2013-03-26 21:46:36Z stephane $
2
# $Id: alcasar-uninstall.sh 1065 2013-04-06 08:50:26Z richard $
3
 
3
 
4
# alcasar-uninstall.sh
4
# alcasar-uninstall.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 17... Line 17...
17
#services_stop
17
#services_stop
18
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd
18
for i in squid ntpd iptables ulogd dansguardian chilli httpd radiusd freshclam havp dnsmasq mysqld named dhcpd
19
do
19
do
20
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
20
	[ -e /etc/init.d/$i ] && /sbin/chkconfig --del $i && /etc/init.d/$i stop && killall $i 2>/dev/null
21
done
21
done
22
echo "Stop main functions : "
22
echo "Stop ALCASAR main functions : "
23
 
23
 
24
#init
24
#init
25
echo -en "\n- init(1) : "
25
echo -en "\n- init(1) : "
26
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
26
#les fichiers situés dans /usr/local/ seront supprimés à la fin car encore utiles ici
27
rm -f /root/ALCASAR* && echo -n "1"
27
rm -f /root/ALCASAR* && echo -n "1"