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
72e8cb67
Commit
72e8cb67
authored
Aug 19, 2022
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not check pid when leaving cluster
parent
e5faebb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
bin/vernemq.sh
+4
-3
No files found.
bin/vernemq.sh
View file @
72e8cb67
...
...
@@ -122,12 +122,13 @@ siguser1_handler() {
# SIGTERM-handler
sigterm_handler
()
{
echo
"Stopping VerneMQ Pod... VerneMQ@
${
IP_ADDRESS
}
"
if
[[
$pid
-ne
0
]]
;
then
echo
"VerneMQ PID =
${
pid
}
"
#if [[ $pid -ne 0 ]]; then
echo
"Leaving cluster..."
# this will stop the VerneMQ process
vmq-admin cluster leave
node
=
VerneMQ@
$IP_ADDRESS
-k
>
/dev/null
wait
"
$pid
"
fi
#
fi
exit
143
;
# 128 + 15 -- SIGTERM
}
...
...
@@ -150,5 +151,5 @@ touch /var/log/vernemq/console.log
while
true
do
tail
-f
/var/log/vernemq/console.log &
wait
${
!
}
done
done
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