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:
@ -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
|
||||
|
Reference in New Issue
Block a user