Merge pull request #29523 from taosdata/enh/TS-5879-3.0m
enh: expand StartLimitInterval to avoid infinite reboot
This commit is contained in:
commit
61501f1074
|
@ -15,7 +15,7 @@ TimeoutStartSec=0
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
Restart=always
|
Restart=always
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
StartLimitInterval=60s
|
StartLimitInterval=300s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -553,7 +553,7 @@ function install_service_on_systemd() {
|
||||||
${csudo}bash -c "echo 'StandardOutput=null' >> ${taosd_service_config}"
|
${csudo}bash -c "echo 'StandardOutput=null' >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo 'Restart=always' >> ${taosd_service_config}"
|
${csudo}bash -c "echo 'Restart=always' >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo 'StartLimitBurst=3' >> ${taosd_service_config}"
|
${csudo}bash -c "echo 'StartLimitBurst=3' >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo 'StartLimitInterval=60s' >> ${taosd_service_config}"
|
${csudo}bash -c "echo 'StartLimitInterval=300s' >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo >> ${taosd_service_config}"
|
${csudo}bash -c "echo >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo '[Install]' >> ${taosd_service_config}"
|
${csudo}bash -c "echo '[Install]' >> ${taosd_service_config}"
|
||||||
${csudo}bash -c "echo 'WantedBy=multi-user.target' >> ${taosd_service_config}"
|
${csudo}bash -c "echo 'WantedBy=multi-user.target' >> ${taosd_service_config}"
|
||||||
|
|
Loading…
Reference in New Issue