From abb8344e473c268753cbc96328e2bd3f18ed1a59 Mon Sep 17 00:00:00 2001 From: "juvenal.diaz" Date: Fri, 4 Dec 2026 15:32:08 -0600 Subject: [PATCH] Restart OpsProof after deployment --- apps/opsproof/README.md | 4 +++- lib/jeannie/pipeline.sh | 3 ++- tests/jeannie/test_privacy_services_pipeline.py | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/opsproof/README.md b/apps/opsproof/README.md index 4b18384..54d7e3b 100644 --- a/apps/opsproof/README.md +++ b/apps/opsproof/README.md @@ -45,7 +45,9 @@ directory. Jeannie resolves the database account's UID and GID from the image before preparing the bind mount, so it does not depend on a host-specific numeric account. The single OpsProof process uses Laravel Go's supported in-memory cache and session stores; durable application records remain in -PostgreSQL. It does not replace Debian's system Go. +PostgreSQL. A successful redeployment explicitly restarts the systemd service +so updated listen addresses and other environment values take effect. It does +not replace Debian's system Go. ## Security boundary diff --git a/lib/jeannie/pipeline.sh b/lib/jeannie/pipeline.sh index aeb8609..61b85f6 100644 --- a/lib/jeannie/pipeline.sh +++ b/lib/jeannie/pipeline.sh @@ -5908,7 +5908,8 @@ ReadWritePaths=${install_dir}/current/storage WantedBy=multi-user.target UNIT_EOF sudo systemctl daemon-reload - sudo systemctl enable --now opsproof.service + sudo systemctl enable opsproof.service + sudo systemctl restart opsproof.service until curl -fsS --connect-timeout 3 "http://${bind_ip}:${http_port}/up" >/dev/null; do if ((elapsed >= 90)); then diff --git a/tests/jeannie/test_privacy_services_pipeline.py b/tests/jeannie/test_privacy_services_pipeline.py index 766515b..4906f57 100644 --- a/tests/jeannie/test_privacy_services_pipeline.py +++ b/tests/jeannie/test_privacy_services_pipeline.py @@ -86,6 +86,9 @@ class OpsProofPipelineTests(unittest.TestCase): pipeline.index("GOTOOLCHAIN=local go test ./..."), ) self.assertIn("opsproof.service", pipeline) + self.assertIn("sudo systemctl enable opsproof.service", pipeline) + self.assertIn("sudo systemctl restart opsproof.service", pipeline) + self.assertNotIn("sudo systemctl enable --now opsproof.service", pipeline) self.assertIn("deploy-opsproof)", command) self.assertIn('"deploy-opsproof": true', server)