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

Commit

Permalink
EM: Add restart on-failure for metadata service
Browse files Browse the repository at this point in the history
This commit adds `Restart=on-failure` and `RestartSec=5s` to the
metadata service.

Signed-off-by: Suraj Deshmukh <suraj@kinvolk.io>
  • Loading branch information
surajssd committed Feb 4, 2021
1 parent 8683071 commit 28a3817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ systemd:
Description=Flatcar Metadata Agent
[Service]
Type=oneshot
Restart=on-failure
RestartSec=5s
Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline
ExecStart=/usr/bin/coreos-metadata $${COREOS_METADATA_OPT_PROVIDER} --attributes=/run/metadata/flatcar
[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ systemd:
Description=Flatcar Container Linux Metadata Agent
[Service]
Type=oneshot
Restart=on-failure
RestartSec=5s
Environment=COREOS_METADATA_OPT_PROVIDER=--cmdline
ExecStart=/usr/bin/coreos-metadata $${COREOS_METADATA_OPT_PROVIDER} --attributes=/run/metadata/flatcar
[Install]
Expand Down

0 comments on commit 28a3817

Please sign in to comment.