Repository navigation
Commit 66ded0c
committed
fix(line): keep liveness check alive when ps is unavailable
Use the full command line for the pid-reuse guard and treat a ps failure
as alive — kill(0) is the primary signal. Previously a missing or failing
ps turned a live daemon into a stale pidfile, which could double-start the
daemon; it also broke the liveness test on CI runners where ps output
differs from the local environment.1 parent 11ae549 commit 66ded0c
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | | - | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | | - | |
149 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
150 | 153 | | |
151 | | - | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
0 commit comments