Skip to content

Commit

Permalink
fix: verbose logging service file failure (#1858)
Browse files Browse the repository at this point in the history
When the verbose flag is not enabled, verbose-logging.sh exits
immediately, but the service file was set to restart causing it to
restart over and over again. After several rapid restarts, systemd marks
the service as failed to prevent a restart loop.

<img width="1308" alt="Pasted Graphic 6"
src="https://github.com/user-attachments/assets/e255a6ac-745e-425c-94c6-3b47a4a75c7a">

This changes the service to only restart on failure
  • Loading branch information
andrewbattat authored Oct 4, 2024
1 parent c918618 commit fcad095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=guestos.service

[Service]
ExecStart=/opt/ic/bin/verbose-logging.sh
Restart=always
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit fcad095

Please sign in to comment.