Skip to content

Commit

Permalink
update example systemd unit to not burst start the service if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPPinto committed Jun 22, 2023
1 parent 507354b commit 5630f1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spotdrain.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Environment=SPOTDRAIN_NOMAD_TOKEN=
Environment=DD_CLIENT_APP_KEY=
Environment=DD_CLIENT_API_KEY=
ExecStart=/opt/spotdrain/bin/spotdrain
Restart=on-failure
Restart=always
RestartSec=45
StartLimitIntervalSec=0

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit 5630f1a

Please sign in to comment.