Commit d1d71f7
Fix confusing exit code 1 in QEMU status check
The grep command checking for crash patterns was returning exit code 1
when no crashes were found (normal grep behavior), making it unclear
what the actual failure was.
Changes:
- Redirect grep output to /dev/null with error suppression (> /dev/null 2>&1)
- Show first 20 lines of crash patterns if found
- Add clear "ERROR: HTTP server failed to start" message before exit
- Better structured output for debugging
This makes it clear the real failure is "HTTP server not responding"
rather than the crash detection check itself.
Co-authored-by: softhack007 <[email protected]>1 parent ddd148e commit d1d71f7
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
| 210 | + | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| |||
0 commit comments