File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ RDEPENDS:${PN} = " \
2828
2929SRC_URI = " \
3030 file://configuration.yaml \
31+ file://labgrid-coordinator.service \
3132 file://labgrid-exporter.service \
3233 file://environment \
3334 "
@@ -37,13 +38,14 @@ DEPENDS += "python3-pytest-runner-native"
3738
3839inherit python_setuptools_build_meta systemd
3940
40- SYSTEMD_SERVICE :${PN} = "labgrid-exporter.service"
41+ SYSTEMD_SERVICE :${PN} = "labgrid-exporter.service labgrid-coordinator.service "
4142
4243do_install :append () {
4344 install -d ${D}${sysconfdir} /labgrid
4445 install -m 0644 ${UNPACKDIR} /configuration . yaml ${D}${sysconfdir} /labgrid
4546 install -m 0644 ${UNPACKDIR} /environment ${D}${sysconfdir} /labgrid
4647 install -d ${D}${systemd_system_unitdir}
48+ install -m 0644 ${UNPACKDIR} /labgrid -coordinator . service ${D}${systemd_system_unitdir} /
4749 install -m 0644 ${UNPACKDIR} /labgrid -exporter . service ${D}${systemd_system_unitdir} /
4850}
4951
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description =Labgrid Coordinator
3+ After =network-online.target
4+ Wants =network-online.target
5+
6+ [Service]
7+ WorkingDirectory =%S/labgrid-coordinator
8+ Environment ="PYTHONUNBUFFERED=1"
9+ EnvironmentFile =/etc/labgrid/environment
10+ ExecStart =/usr/bin/labgrid-coordinator --listen ${LABGRID_COORDINATOR_IP}:${LABGRID_COORDINATOR_PORT}
11+ Restart =always
12+ RestartSec =30
13+
14+ [Install]
15+ WantedBy =multi-user.target
You can’t perform that action at this time.
0 commit comments