From 64d5da4f1359bbd2605e7ab22e6e9e2f21efb00e Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Fri, 14 Jun 2019 21:15:26 +0000 Subject: [PATCH] Log trap progress --- scripts/node.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/node.sh b/scripts/node.sh index 85886509a..0154373d5 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -199,7 +199,10 @@ cleanup() { esac case "${check_update_pid+set}" in - set) kill -${kill_sig} "${check_update_pid}";; + set) + msg "terminating update checker (pid ${check_update_pid})" + kill -${kill_sig} "${check_update_pid}" + ;; esac } @@ -208,6 +211,10 @@ trap_sigs="EXIT HUP INT TERM" trap_func() { local trap_sig="${1-EXIT}" + case "${trap_sig}" in + 0|EXIT) msg "exiting";; + *) msg "received SIG${trap_sig}";; + esac trap - ${trap_sigs}