From 4e5083da6f8692534bc8011f3621480590fcd667 Mon Sep 17 00:00:00 2001 From: Pierrick Couderc Date: Wed, 3 Sep 2025 17:53:41 +0200 Subject: [PATCH 1/2] Package/Baker: enforce stopping every baker service --- .../packaging/octez/scripts/systemd-octez-bakers.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scripts/packaging/octez/scripts/systemd-octez-bakers.sh b/scripts/packaging/octez/scripts/systemd-octez-bakers.sh index b0fafcb8076d..a99f79e88360 100755 --- a/scripts/packaging/octez/scripts/systemd-octez-bakers.sh +++ b/scripts/packaging/octez/scripts/systemd-octez-bakers.sh @@ -32,13 +32,10 @@ for file in /usr/bin/octez-baker-P*; do fi elif [ "$1" = "stop" ]; then - if [ "$AGNOSTIC_BAKER" = "true" ]; then - systemctl stop "octez-agnostic-baker" - systemctl stop "octez-agnostic-accuser" - else - systemctl stop "octez-baker@$proto" - systemctl stop "octez-accuser@$proto" - fi + systemctl stop "octez-baker@$proto" || true + systemctl stop "octez-accuser@$proto" || true + systemctl stop "octez-agnostic-baker" || true + systemctl stop "octez-agnostic-accuser" || true if grep -q "\-\-dal-node" /etc/default/octez-baker; then systemctl stop octez-dal-node fi -- GitLab From acad6d43495653b4287844e6317ff8c8328596ef Mon Sep 17 00:00:00 2001 From: Pierrick Couderc Date: Thu, 4 Sep 2025 14:27:08 +0200 Subject: [PATCH 2/2] Package/Baker: never enable sub services --- scripts/packaging/octez/scripts/systemd-octez-bakers.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/packaging/octez/scripts/systemd-octez-bakers.sh b/scripts/packaging/octez/scripts/systemd-octez-bakers.sh index a99f79e88360..e2405d8fb81d 100755 --- a/scripts/packaging/octez/scripts/systemd-octez-bakers.sh +++ b/scripts/packaging/octez/scripts/systemd-octez-bakers.sh @@ -20,22 +20,22 @@ for file in /usr/bin/octez-baker-P*; do systemctl start octez-dal-node fi if [ "$AGNOSTIC_BAKER" = "true" ]; then - systemctl enable "octez-agnostic-baker" systemctl start "octez-agnostic-baker" - systemctl enable "octez-agnostic-accuser" systemctl start "octez-agnostic-accuser" else - systemctl enable "octez-baker@$proto" systemctl start "octez-baker@$proto" - systemctl enable "octez-accuser@$proto" systemctl start "octez-accuser@$proto" fi elif [ "$1" = "stop" ]; then systemctl stop "octez-baker@$proto" || true + systemctl disable "octez-baker@$proto" || true systemctl stop "octez-accuser@$proto" || true + systemctl disable "octez-accuser@$proto" || true systemctl stop "octez-agnostic-baker" || true + systemctl disable "octez-agnostic-baker" || true systemctl stop "octez-agnostic-accuser" || true + systemctl disable "octez-agnostic-accuser" || true if grep -q "\-\-dal-node" /etc/default/octez-baker; then systemctl stop octez-dal-node fi -- GitLab