@@ -18,7 +18,7 @@ DEPENDS += "rsync-native"
1818# Ensure rsync-native is built before unpack runs
1919do_unpack [depends ] += "rsync-native:do_populate_sysroot"
2020
21- DSTACK_SERVICES = "dstack-guest-agent.service dstack-prepare.service app-compose.service"
21+ DSTACK_SERVICES = "dstack-guest-agent.service dstack-prepare.service app-compose.service wg-checker.service "
2222SYSTEMD_PACKAGES = "${@ bb . utils . contains ('DISTRO_FEATURES' , 'systemd' , '${PN} ' , '' , d )}"
2323SYSTEMD_SERVICE :${PN} = "${@ bb . utils . contains ('DISTRO_FEATURES' , 'systemd' , '${DSTACK_SERVICES} ' , '' , d )}"
2424SYSTEMD_AUTO_ENABLE :${PN} = "enable"
@@ -55,6 +55,7 @@ do_install() {
5555 install -m 0755 ${CARGO_BINDIR} /dstack -util ${D}${bindir}
5656 install -m 0755 ${CARGO_BINDIR} /dstack -guest -agent ${D}${bindir}
5757 install -m 0755 ${S} /basefiles /dstack -prepare . sh ${D}${bindir}
58+ install -m 0755 ${S} /basefiles /wg -checker . sh ${D}${bindir}
5859 install -m 0755 ${S} /basefiles /app -compose . sh ${D}${bindir}
5960 install -m 0755 ${S} /docker -daemon . json ${D}${sysconfdir} /docker /daemon . json
6061 install -m 0644 ${S} /basefiles /journald . conf ${D}${sysconfdir} /systemd /journald . conf . d /dstack . conf
@@ -69,6 +70,7 @@ do_install() {
6970 install -m 0644 ${S} /basefiles /dstack -guest -agent . service ${D}${systemd_system_unitdir}
7071 install -m 0644 ${S} /basefiles /dstack -prepare . service ${D}${systemd_system_unitdir}
7172 install -m 0644 ${S} /basefiles /app -compose . service ${D}${systemd_system_unitdir}
73+ install -m 0644 ${S} /basefiles /wg -checker . service ${D}${systemd_system_unitdir}
7274 install -m 0644 ${S} /basefiles /llmnr . conf ${D}${sysconfdir} /systemd /resolved . conf . d
7375 fi
7476}
0 commit comments