moves openrc -> openrc/init.d

This commit is contained in:
2026-06-26 14:08:37 +01:00
parent 86509e2598
commit c6ff40e288
2 changed files with 11 additions and 10 deletions
+9 -8
View File
@@ -47,18 +47,19 @@ status() {
pods=0
started=0
while read pod; do
pod_service="$(podman inspect $pod | jq .[0].Config.Labels.[\"com.docker.compose.service\"])"
if ! [ "$pod_service" = "\"${MODULENAME}\"" ]; then
continue
fi
pods=$(($pods+1))
if podman top $pod &>/dev/null; then
einfo "status: [$pod] started"
started=$(($started+1))
exit 0
else
einfo "status: [$pod] stopped"
exit 3
fi
done < <("${COMPOSECMD}" -f "${COMPOSEFILE}" ps --quiet ${MODULENAME})
if [ $started -eq $pods ]; then
einfo "status: started"
else
einfo "status: stopped"
return 3
fi
done < <("${COMPOSECMD}" -f "${COMPOSEFILE}" ps --quiet)
einfo "status: no container found for ${MODULENAME}"
exit 3
}