| 1 | [Unit] |
| 2 | Description=Labgrid Exporter |
| 3 | After=network.target |
| 4 | StartLimitIntervalSec=0 |
| 5 | ConditionPathExists=/etc/labgrid/exporter.yaml |
| 6 | |
| 7 | [Service] |
| 8 | Environment="PYTHONUNBUFFERED=1" |
| 9 | # Should contain LG_COORDINATOR configuration |
| 10 | EnvironmentFile=-/etc/default/labgrid-exporter |
| 11 | ExecStart=/usr/bin/labgrid-exporter /etc/labgrid/exporter.yaml -i |
| 12 | Restart=on-failure |
| 13 | RestartSec=30 |
| 14 | CacheDirectory=labgrid |
| 15 | CacheDirectoryMode=1775 |
| 16 | DynamicUser=yes |
| 17 | SupplementaryGroups=dialout plugdev input |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |