Commit 4b4e4d75 authored by Jondy Zhao's avatar Jondy Zhao

Fix re6stnet service couldn't be removed by uninstaller

parent dccbb3f6
......@@ -20,8 +20,11 @@ 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.
echo Try to stop re6stnet service ...
if ! net stop re6stnet ; then
echo Try to kill openvpn process ...
ps -ef | grep -q "/usr/bin/openvpn" && TASKKILL /IM openvpn.exe /F && echo OK.
fi
for name in $(cygrunsrv --list) ; do
echo Removing cygservice $name
cygrunsrv -R $name && echo OK.
......
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