Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Restart on crash (#318)
Browse files Browse the repository at this point in the history
* Restart on crash

See #317. Not sure if we also want to make the agent itself more resilient here,
or if we always want to surface these conditions as crashes.

* Changelog

* There is no such thing as a clean shutdown
  • Loading branch information
nightkr authored Oct 6, 2021
1 parent f8150ad commit 8aceba2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
- Cleanup stage added where systemd units without corresponding pods are
removed on startup ([#312]).

### Changed
- Restart agent on all crashes ([#318]).

[#312]: https://github.com/stackabletech/agent/pull/312
[#318]: https://github.com/stackabletech/agent/pull/318

## [0.6.1] - 2021-09-14

Expand Down
3 changes: 2 additions & 1 deletion packaging/debian/service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ After=network.target
[Service]
User=root
ExecStart=/opt/stackable/stackable-agent/stackable-agent
Restart=on-abort
Restart=always
RestartSec=1s
StandardOutput=journal
StandardError=journal
Environment="CONFIG_FILE=/etc/stackable/stackable-agent/agent.conf"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ After=network.target
[Service]
User=root
ExecStart=/opt/stackable/stackable-agent/stackable-agent
Restart=on-abort
Restart=always
RestartSec=1s
StandardOutput=journal
StandardError=journal
Environment="CONFIG_FILE=/etc/stackable/stackable-agent/agent.conf"
Expand Down

0 comments on commit 8aceba2

Please sign in to comment.