Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
dca09ded
Commit
dca09ded
authored
Apr 12, 2016
by
neil
Browse files
kill nc process
parent
6fc1447f
Changes
1
Hide whitespace changes
Inline
Side-by-side
le.sh
View file @
dca09ded
...
@@ -658,11 +658,16 @@ _stopserver(){
...
@@ -658,11 +658,16 @@ _stopserver(){
return
return
fi
fi
if
[[
"
$(
ps |
grep
"
$pid
"
|
grep
"nc"
)
"
]]
;
then
if
[[
"
$(
ps |
grep
"
$pid
"
)
"
]]
;
then
_debug
"Found
n
c process, kill it."
_debug
"Found
pro
c process, kill it."
kill
-s
9
$pid
>
/dev/null 2>&1
kill
-s
9
$pid
>
/dev/null 2>&1
fi
fi
for
ncid
in
$(
ps |
grep
nc |
cut
-d
" "
-f
1
)
;
do
_debug
"kill
$ncid
"
kill
-s
9
$ncid
>
/dev/null 2>&1
done
_get
"http://localhost:
$Le_HTTPPort
"
>
/dev/null 2>
$1
_get
"http://localhost:
$Le_HTTPPort
"
>
/dev/null 2>
$1
}
}
...
...
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