File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,9 @@ KUBE_CONTROLLERS="${KUBE_CONTROLLERS:-"*"}"
156
156
# Audit policy
157
157
AUDIT_POLICY_FILE=${AUDIT_POLICY_FILE:- " " }
158
158
159
+ # dmesg command PID for cleanup
160
+ DMESG_PID=${DMESG_PID:- " " }
161
+
159
162
# Stop right away if the build fails
160
163
set -e
161
164
@@ -411,6 +414,9 @@ cleanup()
411
414
[[ -n " ${ETCD_DIR-} " ]] && kube::etcd::clean_etcd_dir
412
415
fi
413
416
417
+ # Cleanup dmesg running in the background
418
+ [[ -n " ${DMESG_PID-} " ]] && kill " $DMESG_PID "
419
+
414
420
exit 0
415
421
}
416
422
@@ -812,6 +818,7 @@ function wait_coredns_available(){
812
818
# loop through and grab all things in dmesg
813
819
dmesg > " ${LOG_DIR} /dmesg.log"
814
820
dmesg -w --human >> " ${LOG_DIR} /dmesg.log" &
821
+ DMESG_PID=$!
815
822
fi
816
823
}
817
824
You can’t perform that action at this time.
0 commit comments