# 关闭正在运行的守护进程
sudo pkill -9 pt
sudo pkill -9 protect.bash
sudo pkill -9 ecap_server

# 删除旧的守护进程配置
sudo systemctl disable rc-local.service
sudo systemctl stop rc-local.service
删除 /home/heco/ys_ecap_server 下 protect.bash


# 添加新的守护进程配置
ecap.service 复制到 /etc/systemd/system 更改权限777
sudo systemctl daemon-reload
sudo systemctl enable ecap
复制文件夹 lib v1.0.2，复制文件 restart_device.bash upgrade.bash  到  /home/heco/ys_ecap_server 全部更改权限777
ln -sf  /home/heco/ys_ecap_server/v1.0.2/ecap_server      /home/heco/ys_ecap_server/ecap_server  全部更改权限777


# 启动新的守护进程
sudo systemctl start ecap