File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -50,17 +50,30 @@ function tag_images()
50
50
fi
51
51
}
52
52
53
+ function stop_pmon_service()
54
+ {
55
+ CONTAINER_STOP_RC=0
56
+ debug " Stopping pmon docker"
57
+ docker kill pmon & > /dev/null || CONTAINER_STOP_RC=$?
58
+ systemctl stop pmon || debug " Ignore stopping pmon error $? "
59
+ if [[ CONTAINER_STOP_RC -ne 0 ]]; then
60
+ debug " Failed killing container pmon RC $CONTAINER_STOP_RC ."
61
+ fi
62
+ }
63
+
53
64
function stop_sonic_services()
54
65
{
55
66
if [[ x" $SUBTYPE " == x" DualToR" ]]; then
56
67
debug " DualToR detected, stopping mux container before reboot..."
57
68
systemctl stop mux
58
69
fi
70
+
59
71
if [[ x" $ASIC_TYPE " != x" mellanox" ]]; then
60
72
debug " Stopping syncd process..."
61
73
docker exec -i syncd /usr/bin/syncd_request_shutdown --cold > /dev/null
62
74
sleep 3
63
75
fi
76
+ stop_pmon_service
64
77
}
65
78
66
79
function clear_warm_boot()
Original file line number Diff line number Diff line change @@ -59,13 +59,25 @@ function tag_images()
59
59
fi
60
60
}
61
61
62
+ function stop_pmon_service()
63
+ {
64
+ CONTAINER_STOP_RC=0
65
+ debug " Stopping pmon docker"
66
+ docker kill pmon & > /dev/null || CONTAINER_STOP_RC=$?
67
+ systemctl stop pmon || debug " Ignore stopping pmon error $? "
68
+ if [[ CONTAINER_STOP_RC -ne 0 ]]; then
69
+ debug " Failed killing container pmon RC $CONTAINER_STOP_RC ."
70
+ fi
71
+ }
72
+
62
73
function stop_sonic_services()
63
74
{
64
75
if [[ x" $ASIC_TYPE " != x" mellanox" ]]; then
65
76
debug " Stopping syncd process..."
66
77
docker exec -i syncd /usr/bin/syncd_request_shutdown --cold > /dev/null
67
78
sleep 3
68
79
fi
80
+ stop_pmon_service
69
81
}
70
82
71
83
function clear_lingering_reboot_config()
You can’t perform that action at this time.
0 commit comments