Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Klaus Wölfel
slapos.package
Commits
2b1b00b5
Commit
2b1b00b5
authored
Jul 18, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pre-unistall: stop all the processes started by slapos node
parent
c457abe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
windows/scripts/pre-uninstall.sh
windows/scripts/pre-uninstall.sh
+20
-10
No files found.
windows/scripts/pre-uninstall.sh
View file @
2b1b00b5
...
@@ -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
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment