This commit is contained in:
xyj 2023-12-07 16:56:51 +08:00
parent 54b6955004
commit 9ff77b1340
4 changed files with 1 additions and 5 deletions

View File

@ -1,3 +0,0 @@
#!/bin/bash
echo $device_name
cp -r ../conf/var/$device_name/*.conf /etc/supervisor/conf.d/

View File

@ -37,4 +37,4 @@ stopsignal=TERM
stopasgroup=True stopasgroup=True
priority=1 priority=1
[include] [include]
files = /etc/supervisor/conf.d/*.conf files = /home/pi/lot_manager/conf/common/*.conf

View File

@ -4,7 +4,6 @@ set -e
git pull origin master --force git pull origin master --force
# 配置文件复制到supervisor管理 # 配置文件复制到supervisor管理
cp -r conf/common/*.conf /etc/supervisor/conf.d/ cp -r conf/common/*.conf /etc/supervisor/conf.d/
cp -r conf/var/$device_name/*.conf /etc/supervisor/conf.d/
# 更新配置文件 # 更新配置文件
supervisorctl reread supervisorctl reread
supervisorctl update supervisorctl update