scripts/sepolia/systemd/airlock-listener.service22 lines · 804 bytes
| 1 | # Upgrade Airlock listener: the CRE workflow's log trigger in listen mode (scripts/sepolia/airlock.sh). |
| 2 | # A systemd user unit; install.sh fills in the kit directory and the env file path and installs it for the current user only. |
| 3 | [Unit] |
| 4 | Description=Upgrade Airlock listener (CRE log trigger: judge every AirlockAdmin proposal) |
| 5 | Documentation=file://@KIT@/README.md |
| 6 | # keep restarting however often it fails (a network outage can last longer than any burst limit) |
| 7 | StartLimitIntervalSec=0 |
| 8 | |
| 9 | [Service] |
| 10 | Type=simple |
| 11 | EnvironmentFile=@ENV_FILE@ |
| 12 | WorkingDirectory=@KIT@ |
| 13 | ExecStart=@KIT@/airlock.sh |
| 14 | Restart=always |
| 15 | RestartSec=5 |
| 16 | # airlock.sh stops the simulator on SIGTERM; the whole process group goes after TimeoutStopSec |
| 17 | KillMode=control-group |
| 18 | TimeoutStopSec=20 |
| 19 | NoNewPrivileges=yes |
| 20 | |
| 21 | [Install] |
| 22 | WantedBy=default.target |