diff --git a/meta-lxatac-software/recipes-devtools/python/python3-labgrid/labgrid-exporter.service b/meta-lxatac-software/recipes-devtools/python/python3-labgrid/labgrid-exporter.service new file mode 100644 index 00000000..a160ae8a --- /dev/null +++ b/meta-lxatac-software/recipes-devtools/python/python3-labgrid/labgrid-exporter.service @@ -0,0 +1,15 @@ +[Unit] +Description=Labgrid Exporter +After=network-online.target +Wants=network-online.target + +[Service] +Environment="PYTHONUNBUFFERED=1" +EnvironmentFile=/etc/labgrid/environment +ExecStart=/usr/bin/labgrid-exporter --coordinator ${LABGRID_COORDINATOR_IP}:${LABGRID_COORDINATOR_PORT} /etc/labgrid/configuration.yaml +Restart=on-failure +RestartForceExitStatus=100 +RestartSec=30 + +[Install] +WantedBy=multi-user.target