Commit 9ec8bd1
committed
Fix PID file permission denied: use squid-writable directory
squid -z (as root) creates /var/run/squid.pid, then gosu drops to
squid user which can't overwrite the root-owned file.
Fixes:
- Test configs: pid_filename /var/run/squid/squid.pid (squid-owned)
- Entrypoint: remove stale PID file before starting as squid user
https://claude.ai/code/session_01Tfy3kPd51qRgxpCFXjb2g91 parent 8654b32 commit 9ec8bd1
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
0 commit comments