infrastructure/deploy/archipelago-release-cycle.service
Pavel Isaev 4a3a9fbe59 Release driver: Type=exec so a stop is delivered immediately
systemd does not send SIGTERM to an activating oneshot; stop waited out
TimeoutStopSec=2min and then SIGKILLed the coordinator while it kept building, so a
manual stop looked ignored. The driver is a long-running job, and each worker action
is already bounded by the driver. Guarded by a control_portal test.
2026-11-15 22:51:40 +03:00

18 lines
829 B
Desktop File

[Unit]
Description=Archipelago Rust checks, build, signing and publication
Wants=network-online.target
After=network-online.target docker.service
[Service]
# Type=exec, not oneshot: systemd does not deliver SIGTERM to an activating
# oneshot, so `systemctl stop` only took effect after TimeoutStopSec and the
# portal showed a run as unstoppable for two minutes. The driver is a long-running
# job; each of its worker actions is bounded to four hours by the driver itself.
Type=exec
Environment="ARCHIPELAGO_RELEASE_REASON=Rust/manual release cycle (D-098)"
ExecStart=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/release-cycle.py
ExecStopPost=/usr/bin/python3 /opt/archipelago/src/infrastructure/pipeline/cycle-terminal.py
TimeoutStopSec=2min
KillMode=control-group
StandardOutput=journal
StandardError=journal