A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
feat(hostbridge): add podroid-hostd OpenRC service
ExTv87df3f63e3c9
diff --git a/build-rootfs/files/etc/init.d/podroid-hostd b/build-rootfs/files/etc/init.d/podroid-hostdnew file mode 100644index 0000000..8f24e4b--- /dev/null+++ b/build-rootfs/files/etc/init.d/podroid-hostd@@ -0,0 +1,27 @@+#!/sbin/openrc-run+description="Podroid guest -> Android host bridge (notify/forward)"+pidfile="/run/podroid-hostd.pid"++depend() {+ need podroid-bootstrap+ before podroid-ready+}++start() {+ ebegin "Starting podroid-hostd"+ start-stop-daemon --start --background \+ --make-pidfile --pidfile "$pidfile" \+ --stdout /var/log/podroid-hostd.log \+ --stderr /var/log/podroid-hostd.log \+ --exec /usr/local/bin/podroid-hostd+ eend $?+}++stop() {+ if [ -f "$pidfile" ]; then+ ebegin "Stopping podroid-hostd"+ start-stop-daemon --stop --pidfile "$pidfile"+ rm -f "$pidfile"+ eend $?+ fi+}