fix: mv does not work cross devices
This commit is contained in:
parent
36a43fc016
commit
f7f7b97279
|
@ -59,7 +59,8 @@ function check_taosd_exit_type() {
|
||||||
if [ ! -z "$core_files" ]; then
|
if [ ! -z "$core_files" ]; then
|
||||||
# move core files to another folder
|
# move core files to another folder
|
||||||
mkdir -p ${BACKUP_CORE_FOLDER}
|
mkdir -p ${BACKUP_CORE_FOLDER}
|
||||||
mv ${core_folder}/${core_prefix}* ${BACKUP_CORE_FOLDER}/
|
cp ${core_folder}/${core_prefix}* ${BACKUP_CORE_FOLDER}/
|
||||||
|
rm -f ${core_folder}/${core_prefix}*
|
||||||
set_service_state "error" "taosd exit with core file"
|
set_service_state "error" "taosd exit with core file"
|
||||||
else
|
else
|
||||||
set_service_state "error" "taosd exit without core file"
|
set_service_state "error" "taosd exit without core file"
|
||||||
|
|
Loading…
Reference in New Issue