systemd: Prevent excessive restarts in tight loop

This commit is contained in:
Matt Holt 2019-10-07 11:28:21 -06:00 committed by GitHub
parent 11eee95222
commit 16b296c97e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,11 @@ Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-abnormal
; Do not allow the process to be restarted in a tight loop. If the
; process fails to start, something critical needs to be fixed.
StartLimitIntervalSec=14400
StartLimitBurst=10
; User and group the process will run as.
User=www-data
Group=www-data