Subversion Repositories ALCASAR

Rev

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

Rev 1228 Rev 1229
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-uninstall.sh 1228 2013-09-30 13:15:43Z crox53 $
2
# $Id: alcasar-uninstall.sh 1229 2013-10-01 07:25:03Z crox53 $
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
for i in alcasar-load_balancing.service nfsen.service
22
for i in alcasar-load_balancing.service nfsen.service 
23
do
23
do
24
	[ -e /lib/systemd/system/$i ] && systemctl disable $i && systemctl stop $i
24
	[ -e /lib/systemd/system/$i ] && systemctl disable $i && systemctl stop $i 1>/dev/null
25
done
25
done
26
 
26
 
27
echo "Stop ALCASAR main functions : "
27
echo "Stop ALCASAR main functions : "
28
 
28
 
29
#init
29
#init