Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-uninstall.sh 1374 2014-06-04 17:09:43Z richard $
|
2 |
# $Id: alcasar-uninstall.sh 1375 2014-06-04 21:06:52Z 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 havp gammu-smsd
|
18 |
for i in havp gammu-smsd
|
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 mysqld.service ntpd.service iptables.service ulogd.service dansguardian.service httpd.service radiusd.service freshclam.service dnsmasq.service dhcpd.service chilli.service
|
22 |
for i in alcasar-load_balancing.service nfsen.service mysqld.service ntpd.service iptables.service ulogd-ext-access.service ulogd-ssh.service ulogd-traceability.service dansguardian.service httpd.service radiusd.service freshclam.service dnsmasq.service dnsmasq-blacklist.service dnsmasq-whitelist.service dhcpd.service chilli.service
|
23 |
do
|
23 |
do
|
24 |
[ -e /lib/systemd/system/$i ] && systemctl disable $i && systemctl stop $i 1>/dev/null
|
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 : "
|