Commit 2b1b00b5 authored by Jondy Zhao's avatar Jondy Zhao

pre-unistall: stop all the processes started by slapos node

parent c457abe1
...@@ -17,6 +17,26 @@ ...@@ -17,6 +17,26 @@
# #
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:$PATH export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:$PATH
#
# Remove services installed by cygwin,
#
echo Try to kill openvpn process ...
ps -ef | grep -q "/usr/bin/openvpn" && TASKKILL /IM openvpn.exe /F && echo OK.
for name in $(cygrunsrv --list) ; do
echo Removing cygservice $name
cygrunsrv -R $name && echo OK.
done
#
# Stop slapos
#
if [[ -x /opt/slapos/bin/slapos ]] ; then
echo Stoping slapos node ...
/opt/slapos/bin/slapos node stop all && echo OK.
fi
echo Try to kill python2.7 process ...
ps -ef | grep -q "/usr/bin/python2.7" && TASKKILL /IM python2.7.exe /F && echo OK.
# #
# Remove virtual netcard installed by re6stnet # Remove virtual netcard installed by re6stnet
# #
...@@ -30,16 +50,6 @@ for ifname in $(netsh interface ipv6 show interface | gawk '{ print $5 }') ; do ...@@ -30,16 +50,6 @@ for ifname in $(netsh interface ipv6 show interface | gawk '{ print $5 }') ; do
fi fi
done done
#
# Remove services installed by cygwin,
#
echo Try to kill openvpn process ...
ps -ef | grep -q "/usr/bin/openvpn" && TASKKILL /IM openvpn.exe /F && echo OK.
for name in $(cygrunsrv --list) ; do
echo Removing cygservice $name
cygrunsrv -R $name && echo OK.
done
# #
# Remove users installed by slapos node # Remove users installed by slapos node
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment