forked from shinken-solutions/shinken
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clean.sh
executable file
·43 lines (37 loc) · 1.09 KB
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
sudo rm -fr /usr/local/lib/python2.*/dist-packages/Shinken-*-py2.6.egg
sudo rm -fr /usr/local/lib/python2.*/dist-packages/shinken
sudo rm -fr /usr/local/bin/shinken-*
sudo rm -fr /usr/bin/shinken-*
sudo rm -fr /etc/shinken
sudo rm -fr /etc/init.d/shinken*
sudo rm -fr /var/lib/shinken
sudo rm -fr /var/log/shinken
sudo rm -fr /etc/default/shinken
sudo rm -fr build dist Shinken.egg-info
rm -fr test/var/*.pid
rm -fr var/*.debug
rm -fr var/archives/*
rm -fr var/*.log*
rm -fr var/*.pid
rm -fr var/service-perfdata
rm -fr var/*.dat
rm -fr var/*.profile
rm -fr var/*.cache
rm -fr var/rw/*cmd
#rm -fr /tmp/retention.dat
rm -fr /tmp/*debug
rm -fr test/tmp/livelogs*
rm -fr bin/default/shinken
# Then kill remaining processes
# first ask a easy kill, to let them close their sockets!
killall python2.6 2> /dev/null
killall python 2> /dev/null
killall /usr/bin/python 2> /dev/null
# I give them 2 sec to close
sleep 3
# Ok, now I'm really angry if there is still someboby alive :)
sudo killall -9 python2.6 2> /dev/null
sudo killall -9 python 2> /dev/null
sudo killall -9 /usr/bin/python 2> /dev/null
echo ""