bugfix:TSG-16985:修改7400设备telegraf_security和telegraf_proxy服务启动顺序

This commit is contained in:
fumingwei
2023-09-08 16:22:15 +08:00
parent 131b166c39
commit 722a60f1f6
2 changed files with 14 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
Description=Tsg os provision
Requires=network.target
After=network.target
Before=tfe-env.service mrenv.service certstore.service telegraf_statistic.service cert-redis.service consul.service
Before=tfe-env.service mrenv.service certstore.service telegraf_statistic.service telegraf_proxy.service telegraf_security.service cert-redis.service consul.service
[Service]
ExecStart=/bin/sh -c "/opt/tsg/tsg-os-provision/scripts/provision.sh 0"
@@ -11,4 +11,4 @@ RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
RequiredBy=tfe-env.service mrenv.service certstore.service telegraf_statistic.service cert-redis.service consul.service
RequiredBy=tfe-env.service mrenv.service certstore.service telegraf_statistic.service telegraf_proxy.service telegraf_security.service cert-redis.service consul.service

View File

@@ -314,6 +314,18 @@
state: restarted
when: enable_config_apply == '1'
- name: "tsg-os-provision: restart telegraf_security"
systemd:
name: telegraf_security
state: restarted
when: enable_config_apply == '1'
- name: "tsg-os-provision: restart telegraf_proxy"
systemd:
name: telegraf_proxy
state: restarted
when: enable_config_apply == '1'
- name: "tsg-os-provision: restart certstore"
systemd:
name: certstore