mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-12-03 21:27:01 +07:00
fix: Shutdown message
* fix: Shutdown message
This commit is contained in:
parent
159fce6839
commit
69e785e6ee
@ -35,7 +35,7 @@ finish() {
|
||||
if [ -f "$QEMU_PID" ]; then
|
||||
|
||||
pid="$(cat "$QEMU_PID")"
|
||||
echo && error "Forcefully quitting QEMU process, reason: $reason..."
|
||||
echo && error "Forcefully terminating QEMU process, reason: $reason..."
|
||||
{ kill -15 "$pid" || true; } 2>/dev/null
|
||||
|
||||
while isAlive "$pid"; do
|
||||
@ -51,7 +51,7 @@ finish() {
|
||||
closeNetwork
|
||||
|
||||
sleep 1
|
||||
echo && info "Shutdown completed!"
|
||||
echo && echo "❯ Shutdown completed!"
|
||||
|
||||
exit "$reason"
|
||||
}
|
||||
@ -98,7 +98,7 @@ _graceful_shutdown() {
|
||||
|
||||
response="${response#*message\"\: \"}"
|
||||
[ -z "$response" ] && response="second signal"
|
||||
echo && error "Forcefully quitting because of: ${response%%\"*}"
|
||||
echo && error "Forcefully terminating because of: ${response%%\"*}"
|
||||
{ kill -15 "$pid" || true; } 2>/dev/null
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user