From a141a31547b3f81c75f7156c495fcc3f3d3513cc Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 6 Aug 2026 00:21:59 +0200 Subject: [PATCH] Fix ordering cycle between minecraft.service and minecraft.socket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The socket declared Service=minecraft.service and PartOf=minecraft.service while the service declared Requires=minecraft.socket. That is a cycle, which systemd breaks by failing a job — surfacing as "a dependency job for minecraft.service failed" with no obvious cause. The socket now only listens; the service owns the relationship via Requires=/After=/Sockets=. Also stop enabling minecraft.socket directly: it has no [Install] section, and the service pulls it in. Co-Authored-By: Claude Opus 5 --- mc-service-setup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mc-service-setup.sh b/mc-service-setup.sh index 922b675..c4f9ab7 100755 --- a/mc-service-setup.sh +++ b/mc-service-setup.sh @@ -291,11 +291,13 @@ info "writing $UNIT_DIR/minecraft.socket" cat > "$UNIT_DIR/minecraft.socket" </dev/null +systemctl enable minecraft.service >/dev/null if (( HTTP )); then systemctl enable packwiz-http.service >/dev/null systemctl restart packwiz-http.service