1
0
mirror of https://github.com/skeeto/endlessh.git synced 2024-05-19 06:49:58 +00:00

Add restart limit in case it gets stuck in a crash loop

This commit is contained in:
Will Starms
2019-03-22 17:21:57 -05:00
parent 922af308f2
commit 548a7b1521

View File

@ -9,6 +9,10 @@ RestartSec=30sec
ExecStart=/opt/endlessh/endlessh
KillSignal=SIGTERM
# Stop trying to restart the service if it restarts too many times in a row
StartLimitInterval=5min
StartLimitBurst=4
StandardOutput=journal
StandardError=journal
StandardInput=null