mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-15 09:21:06 +02:00
Avoid killing Atomix management processes when shutting down Atomix nodes
Change-Id: If89bb6f060e8349e75995aed079ac7f65ffe8752
This commit is contained in:
parent
87dc82e42e
commit
0b3ad5b83d
@ -7,7 +7,7 @@
|
||||
. $ONOS_ROOT/tools/build/envDefaults
|
||||
|
||||
ssh $ONOS_USER@${1:-$OCI} "
|
||||
pid=\$(ps -ef | grep atomix-agent.jar | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
pid=\$(ps -ef | grep AtomixAgent | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
if [ -n \"\$pid\" ]; then
|
||||
echo \"Killing Atomix process \$pid on \$(hostname)...\"
|
||||
kill -9 \$pid
|
||||
|
@ -50,7 +50,7 @@ case $2 in
|
||||
# Execute the remote commands
|
||||
for node in $nodes; do
|
||||
ssh -tt $ONOS_USER@${node} "
|
||||
pid=\$(ps -ef | grep atomix | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
pid=\$(ps -ef | grep AtomixAgent | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
if [ -n \"\$pid\" ]; then
|
||||
echo \"Killing Atomix process \$pid on \$(hostname)...\"
|
||||
kill -9 \$pid
|
||||
|
@ -27,7 +27,7 @@ _EOF_
|
||||
remote=$ONOS_USER@${1:-$OCI}
|
||||
|
||||
ssh -tt $remote "
|
||||
pid=\$(ps -ef | grep atomix | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
pid=\$(ps -ef | grep AtomixAgent | grep -v grep | cut -c10-15 | tr -d ' ')
|
||||
if [ -n \"\$pid\" ]; then
|
||||
echo \"Killing Atomix process \$pid on \$(hostname)...\"
|
||||
kill -9 \$pid
|
||||
|
Loading…
x
Reference in New Issue
Block a user