Instead of killing the screen, use stop_process which will
shut the processes when USE_SCREEN is False.
Change-Id: If0f714cb112dbf5fe9e4fdd7291cb4fb1df87f42
| ... | ... |
@@ -482,9 +482,8 @@ function start_ironic_conductor {
|
| 482 | 482 |
|
| 483 | 483 |
# stop_ironic() - Stop running processes |
| 484 | 484 |
function stop_ironic {
|
| 485 |
- # Kill the Ironic screen windows |
|
| 486 |
- screen -S $SCREEN_NAME -p ir-api -X kill |
|
| 487 |
- screen -S $SCREEN_NAME -p ir-cond -X kill |
|
| 485 |
+ stop_process ir-api |
|
| 486 |
+ stop_process ir-cond |
|
| 488 | 487 |
|
| 489 | 488 |
# Cleanup the WSGI files |
| 490 | 489 |
if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then |