Repository navigation
Commit 40cb56a
ecce-dataserver-start/-stop: resolve apache2 by full path, not bare PATH lookup
Root-caused on beryllium: bin/gateway was failing to launch, showing a
blocking "cannot establish a connection to the ECCE Server" dialog. Traced
it back to ecce-dataserver-start's `apache2 -f ... -k start` invocation,
which relies on `apache2` being on $PATH. Debian only merges /usr/sbin
(where the apache2 binary lives) into PATH for root -- confirmed via
`systemctl --user show-environment` and gnome-session's own
/proc/<pid>/environ that a regular user's desktop-session PATH does not
include it. The command silently failed with exit 127, the per-user data
server on port 8096 never came up, ecce-gateway-start's `|| true` masked
the failure, and gateway only surfaced it downstream as an opaque
connection-refused dialog instead of an actual error from the script
itself.
Resolve apache2 via `command -v`, falling back to /usr/sbin/apache2, and
fail with a clear message if neither exists. Same fix applied to
ecce-dataserver-stop's apache2 -k stop call.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJdPpqvvDFJoF1xRH4hv191 parent 3e16c6e commit 40cb56a
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
25 | 39 | | |
26 | 40 | | |
27 | 41 | | |
| |||
81 | 95 | | |
82 | 96 | | |
83 | 97 | | |
84 | | - | |
| 98 | + | |
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
0 commit comments