|
|
@ -180,6 +180,8 @@ then |
|
|
|
fi |
|
|
|
fi |
|
|
|
mkdir -p latest |
|
|
|
mkdir -p latest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unset -v check_update_pid |
|
|
|
|
|
|
|
|
|
|
|
cleanup() { |
|
|
|
cleanup() { |
|
|
|
local trap_sig kill_sig |
|
|
|
local trap_sig kill_sig |
|
|
|
|
|
|
|
|
|
|
@ -189,6 +191,10 @@ cleanup() { |
|
|
|
case "${kill_sig}" in |
|
|
|
case "${kill_sig}" in |
|
|
|
0|EXIT) kill_sig=TERM;; |
|
|
|
0|EXIT) kill_sig=TERM;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case "${check_update_pid+set}" in |
|
|
|
|
|
|
|
set) kill -${kill_sig} "${check_update_pid}";; |
|
|
|
|
|
|
|
esac |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
unset -v trap_sigs trap_sig |
|
|
|
unset -v trap_sigs trap_sig |
|
|
@ -212,6 +218,11 @@ do |
|
|
|
trap "trap_func ${trap_sig}" ${trap_sig} |
|
|
|
trap "trap_func ${trap_sig}" ${trap_sig} |
|
|
|
done |
|
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
# TODO ek – implement me |
|
|
|
|
|
|
|
} & |
|
|
|
|
|
|
|
check_update_pid=$! |
|
|
|
|
|
|
|
|
|
|
|
while : |
|
|
|
while : |
|
|
|
do |
|
|
|
do |
|
|
|
echo "############### Running Harmony Process ###############" |
|
|
|
echo "############### Running Harmony Process ###############" |
|
|
|