Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
baremetal: let installer.service retry on failure
Browse files Browse the repository at this point in the history
In case the network only has a temporary problem, the installer service
should start again on failure.
Convert it to a oneshot service to set RemainAfterExist, so that it is
not triggered twice if anything that depends on it is pulling it in
again after it finished.
  • Loading branch information
pothos committed Jun 17, 2021
1 parent 609764a commit 1a346e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ systemd:
Requires=network-online.target
After=network-online.target
[Service]
Type=simple
Type=oneshot
RemainAfterExit=true
Restart=on-failure
RestartSec=10s
ExecStart=/opt/installer
[Install]
WantedBy=multi-user.target
Expand Down
4 changes: 2 additions & 2 deletions pkg/assets/generated_assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1a346e6

Please sign in to comment.