enh: expand StartLimitInterval to avoid infinite reboot

This commit is contained in:
kailixu 2025-01-08 17:51:14 +08:00
parent 6cc43f9fa3
commit 0fb42ca0fd
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ TimeoutStartSec=0
StandardOutput=null
Restart=always
StartLimitBurst=3
StartLimitInterval=300s
StartLimitInterval=900s
[Install]
WantedBy=multi-user.target

View File

@ -553,7 +553,7 @@ function install_service_on_systemd() {
${csudo}bash -c "echo 'StandardOutput=null' >> ${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 'StartLimitInterval=300s' >> ${taosd_service_config}"
${csudo}bash -c "echo 'StartLimitInterval=900s' >> ${taosd_service_config}"
${csudo}bash -c "echo >> ${taosd_service_config}"
${csudo}bash -c "echo '[Install]' >> ${taosd_service_config}"
${csudo}bash -c "echo 'WantedBy=multi-user.target' >> ${taosd_service_config}"