Commit 20fb231
drt: run roachtest-operations as a systemd unit
Previously, roachtest-operations ran directly in the foreground piped
through tee. This made it difficult to manage as a service — stopping
it required finding the process, and SIGINT handling via the tee pipe
was fragile.
Now the script uses systemd-run to create a transient systemd unit
(roachtest-operations-<cluster>), following the same self-reinvocation
pattern as roachprod's start.sh. The script detects re-invocation via
the ROACHTEST_OPS_SYSTEMD env var and uses exec to replace bash, so
roachtest-operations directly receives SIGTERM from systemctl stop for
graceful shutdown. TimeoutStopSec=150 ensures the full 2-minute cleanup
window is respected. Logs are available via journalctl.
Epic: none
Release note: None
Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>1 parent 542a5b0 commit 20fb231
1 file changed
Lines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
88 | 106 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 107 | + | |
95 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments