From 87fcb02b60df57eaa01308d52b9429112efe8307 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Tue, 14 Apr 2026 11:37:30 -0300 Subject: [PATCH] fix: correct systemd service name in CI workflow The workflow was trying to stop/start 'botui.service' but the actual service name is 'ui.service'. Updated all references to use the correct service name. --- .forgejo/workflows/botui.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/botui.yaml b/.forgejo/workflows/botui.yaml index 88c75a5..a762d06 100644 --- a/.forgejo/workflows/botui.yaml +++ b/.forgejo/workflows/botui.yaml @@ -101,18 +101,18 @@ jobs: echo "Step 2: Backing up old binary..." ssh $SSH_ARGS system "cp /opt/gbo/bin/botui /tmp/botui.bak" echo "Step 3: Stopping botui service..." - ssh $SSH_ARGS system "sudo systemctl stop botui || true" + ssh $SSH_ARGS system "sudo systemctl stop ui || true" echo "Step 4: Transferring new binary..." tar cf - -C /opt/gbo/data/botui/target/debug botui | gzip -1 | ssh $SSH_ARGS system "gzip -d | tar xf - -C /opt/gbo/bin && chmod +x /opt/gbo/bin/botui && chown gbuser:gbuser /opt/gbo/bin/botui && echo 'Transfer complete'" echo "Step 5: Starting botui service..." - ssh $SSH_ARGS system "sudo systemctl start botui && echo 'BotUI started'" + ssh $SSH_ARGS system "sudo systemctl start ui && echo 'BotUI started'" echo "=== Deploy completed ===" - name: Verify botui started run: | sleep 15 SSH_ARGS="-i /home/gbuser/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o ConnectTimeout=5 -o ServerAliveInterval=5 -o ServerAliveCountMax=2 -o BatchMode=yes" - ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: botui is running' || echo 'WARNING: botui may still be starting'" + ssh $SSH_ARGS system "pgrep -f botui >/dev/null && echo 'OK: ui is running' || echo 'WARNING: ui may still be starting'" - name: Save deploy log if: always()