Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vernemq
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stack
vernemq
Commits
2e5e2c15
Commit
2e5e2c15
authored
Aug 18, 2022
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pid problem in vernemq.sh
parent
4b7b5150
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bin/vernemq.sh
+2
-2
No files found.
bin/vernemq.sh
View file @
2e5e2c15
...
@@ -122,12 +122,12 @@ siguser1_handler() {
...
@@ -122,12 +122,12 @@ siguser1_handler() {
# SIGTERM-handler
# SIGTERM-handler
sigterm_handler
()
{
sigterm_handler
()
{
echo
"Stopping VerneMQ Pod... VerneMQ@
${
IP_ADDRESS
}
"
echo
"Stopping VerneMQ Pod... VerneMQ@
${
IP_ADDRESS
}
"
if
[
$pid
-ne
0
]
;
then
#
if [ $pid -ne 0 ]; then
echo
"Leaving cluster..."
echo
"Leaving cluster..."
# this will stop the VerneMQ process
# this will stop the VerneMQ process
vmq-admin cluster leave
node
=
VerneMQ@
$IP_ADDRESS
-k
>
/dev/null
vmq-admin cluster leave
node
=
VerneMQ@
$IP_ADDRESS
-k
>
/dev/null
wait
"
$pid
"
wait
"
$pid
"
fi
#
fi
exit
143
;
# 128 + 15 -- SIGTERM
exit
143
;
# 128 + 15 -- SIGTERM
}
}
...
...
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