Repository navigation
Commit d02b496
committed
[act.deploy.sigma.D7+] three processes with PPID 1 and nobody watching them is not a deployment
Ivan asked whether any of this is deployed. It was not. The unit files had been
sitting in deploy/systemd/ since they were written, with "NOT INSTALLED BY THIS
COMMIT" in their own headers, while all three services ran as hand-started
foreground processes reparented to PID 1 — no supervision, no restart, no
start-at-boot. The only symptom of any of them dying is "backend offline" in the
UI, which is exactly the sentence that cost a Mac-side debugging session.
NOW ACTUALLY RUNNING, under systemctl --user with linger ON so they come up at
boot without a login:
dirac-fields.service :8901 enabled + active
dirac-web.service :1338 enabled + active
dirac-physics.service :8902 installed, deliberately NOT started
SUPERVISION PROVEN, NOT ASSUMED — the whole value of a unit file is the restart,
and a restart nobody has watched is a claim: kill -9 on the fields MainPID
(948941) → new pid 949241 within 8 s, /health 200. Linger checked separately
(loginctl ... -p Linger = yes), because enable+active still gives you nothing
after a reboot without it, and that gap is invisible until the reboot.
THE UNIT WAS SPLIT, and the port conflict is why the file's own argument finally
won. dirac-backend.service supervised both python daemons under one `wait -n`
wrapper and said in its header that two units were almost certainly right. Two
concrete costs, not one: a physics crash would restart the fields daemon and
throw away its in-memory SCF cache (minutes of CPU for an Fe-heme wavefunction);
and TODAY the physics daemon on :8902 is hand-run by another session, so the
merged unit would fail to bind, exit the wrapper, and restart-loop BOTH — taking
down a working fields daemon in order to fail at starting a physics one. Merged
file moved to _archive/ rather than deleted: it carries the measured memory
ceiling derivation (pyscf plans around 4000 MB per SCF; idle RSS ~160 MB fields
/ ~1.06 GB physics) that both new units inherit.
deploy/README.md corrected everywhere, not just at the top — the table now names
files that exist, and the `journalctl -u dirac-backend` line is fixed with the
trap written next to it: journalctl against a nonexistent unit prints nothing and
exits 0, so silence there is "no such unit", never "no errors". A correction that
reaches only the summary leaves the copy-pasteable commands lying.1 parent f9dabd6 commit d02b496
4 files changed
Lines changed: 121 additions & 11 deletions
File tree
- deploy
- systemd
- _archive
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
15 | 31 | | |
16 | 32 | | |
17 | 33 | | |
| |||
20 | 36 | | |
21 | 37 | | |
22 | 38 | | |
23 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
24 | 42 | | |
25 | 43 | | |
26 | 44 | | |
| |||
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
138 | | - | |
| 156 | + | |
| 157 | + | |
139 | 158 | | |
140 | 159 | | |
141 | | - | |
| 160 | + | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
| |||
150 | 169 | | |
151 | 170 | | |
152 | 171 | | |
153 | | - | |
154 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
155 | 178 | | |
156 | 179 | | |
157 | 180 | | |
158 | 181 | | |
159 | 182 | | |
160 | | - | |
| 183 | + | |
161 | 184 | | |
162 | 185 | | |
163 | 186 | | |
164 | | - | |
| 187 | + | |
165 | 188 | | |
166 | 189 | | |
167 | 190 | | |
168 | 191 | | |
169 | 192 | | |
170 | 193 | | |
171 | | - | |
| 194 | + | |
172 | 195 | | |
173 | 196 | | |
174 | 197 | | |
| |||
197 | 220 | | |
198 | 221 | | |
199 | 222 | | |
200 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
201 | 226 | | |
202 | 227 | | |
203 | 228 | | |
| |||
206 | 231 | | |
207 | 232 | | |
208 | 233 | | |
209 | | - | |
| 234 | + | |
| 235 | + | |
210 | 236 | | |
211 | 237 | | |
212 | 238 | | |
| |||
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments