Skip to content

aktualizr-lite: reboot on failed start#1105

Merged
ricardosalveti merged 1 commit intofoundriesio:mainfrom
mwasilew:aklite-reboot
Apr 21, 2023
Merged

aktualizr-lite: reboot on failed start#1105
ricardosalveti merged 1 commit intofoundriesio:mainfrom
mwasilew:aklite-reboot

Conversation

@mwasilew
Copy link
Copy Markdown
Contributor

This patch will force systemd to reboot the board in case aktualizr-lite fails to start. It prevents going into a state when aktualizr-lite doesn't start after OTA and there is no other service that would force a rollback.

Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This patch will force systemd to reboot the board in case aktualizr-lite
fails to start 3 times. It prevents going into a state when aktualizr-lite
doesn't start after OTA and there is no other service that would force a
rollback.

Signed-off-by: Milosz Wasilewski <[email protected]>
@MrCry0
Copy link
Copy Markdown
Contributor

MrCry0 commented Apr 19, 2023

Looks better :)

Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@ricardosalveti
Copy link
Copy Markdown
Member

@mwasilew mind doing a similar update for docker?

@ricardosalveti ricardosalveti merged commit e35d9d3 into foundriesio:main Apr 21, 2023
@mwasilew
Copy link
Copy Markdown
Contributor Author

@mwasilew mind doing a similar update for docker?

Sure, I was working on it on Wed, but didn't finish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants