update the order of stopping services

Services should be stopped in the reverse order in which they were created

Signed-off-by: 虫儿飞 <wei_jiangang@hoperun.com>
This commit is contained in:
虫儿飞 2024-03-26 07:57:59 +00:00 committed by Wei Jiangang
parent c1ba66a885
commit 4075b150bf

View File

@ -7,13 +7,13 @@
# 定义map保存参数和对应执行的shell命令
declare -A COMMAND_MAP=(
["datamgr"]="pkill -f distributeddata"
["dfs"]="pkill -f distributedfile"
["dm"]="pkill -f device_manager"
["softbus"]="pkill -f softbus_server"
["deviceauth"]="pkill -f deviceauth_service"
["huks"]="pkill -f huks_service"
["samgr"]="pkill -f samgr"
["datamgr"]="pkill -f distributeddata"\
)
# 日志打印函数