bugfix:TSG-16985:修改7400设备telegraf_security和telegraf_proxy服务启动顺序
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user