Skip to content

Commit b3569dd

Browse files
contrib/systemd/labgrid-exporter: make service restart always and indefinitely
The exporter sets reexec=True for known errors only. If other errors occur (e.g. network issues), the exporter exits with 0. So set Restart=always to make sure even these exit conditions lead to a restarted exporter. Drop the now redundant RestartForceExitStatus. Add StartLimitIntervalSec=0 to make it restart indefinitely. Signed-off-by: Bastian Krause <[email protected]>
1 parent 6962ac5 commit b3569dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/systemd/labgrid-exporter.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Environment="PYTHONUNBUFFERED=1"
88
# Should contain LG_COORDINATOR configuration
99
EnvironmentFile=-/etc/environment
1010
ExecStart=/path/to/labgrid/venv/bin/labgrid-exporter /etc/labgrid/exporter.yaml
11-
Restart=on-failure
12-
RestartForceExitStatus=100
11+
Restart=always
1312
RestartSec=30
13+
StartLimitIntervalSec=0
1414
DynamicUser=yes
1515
# Adjust to your distribution (most often "dialout" or "tty")
1616
SupplementaryGroups=dialout plugdev

0 commit comments

Comments
 (0)