| 1 | [Unit] |
| 2 | Description=Labgrid Exporter |
| 3 | After=network-online.target |
| 4 | Wants=network-online.target |
| 5 | StartLimitIntervalSec=0 |
| 6 | |
| 7 | [Service] |
| 8 | Environment="PYTHONUNBUFFERED=1" |
| 9 | # Should contain LG_COORDINATOR configuration |
| 10 | EnvironmentFile=-/etc/environment |
| 11 | ExecStart=/path/to/labgrid/venv/bin/labgrid-exporter /etc/labgrid/exporter.yaml |
| 12 | Restart=always |
| 13 | RestartSec=30 |
| 14 | # Replace 'DynamicUser=yes' with 'User=labgrid' and 'Group=labgrid' when using labgrid helpers with sudo. |
| 15 | DynamicUser=yes |
| 16 | # Adjust to your distribution (most often "dialout" or "tty") |
| 17 | SupplementaryGroups=dialout plugdev |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |