Commit a675ffe
committed
Fix ClickHouse server startup - use background process not daemon
The --daemon flag wasn't working properly, causing connection failures.
Replace with background process (&) approach:
Changes:
- Run server in background with output redirect to log file
- Capture PID for debugging
- Add error handling to show logs if startup fails after 60s
- Remove problematic --daemon and -- syntax
Benefits:
- More reliable startup
- Better debugging with accessible logs
- Standard Unix background process approach
- Logs available on failure for troubleshooting
This should fix the "Connection refused (localhost:9000)" error.1 parent 4c88764 commit a675ffe
1 file changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
177 | 180 | | |
178 | 181 | | |
179 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
180 | 188 | | |
181 | 189 | | |
182 | 190 | | |
| |||
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
235 | | - | |
236 | | - | |
| 243 | + | |
| 244 | + | |
237 | 245 | | |
238 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
239 | 250 | | |
240 | 251 | | |
241 | 252 | | |
| |||
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
249 | 265 | | |
250 | 266 | | |
251 | 267 | | |
| |||
0 commit comments