mirror of https://github.com/perkeep/perkeep.git
e86d90dd42
The machine now boots with a new pair of cooperating systemd units: 1) cam-journal-gatewayd.service: a copy of the systemd-journal-gatewayd service, which runs an HTTP interface to the systemd journal. 2) cam-journal-gatewayd.socket: a unix socket listener listening on unix socket /run/camjournald.sock. Incoming connections will forward to 1). Then the camlistored.service unit running camlistored under Docker now passes -v /run/camjournald.sock:/run/camjournald.sock to make that unix socket available to the Docker container. Then in camlistored, a new handler at /debug/logs (wrapped in auth checks) then opens that socket and makes an HTTP request to it, copying its response (of log lines) back to the browser. This will ease debugging, letting people only use their browser to debug (or send logs to the Camlistore developers more likely), rather than sshing in to CoreOS and learning CoreOS and systemd arcana. Change-Id: Icd5967ae7e9946d36229bdbc5d37644a11ee5e9f |
||
---|---|---|
.. | ||
testdata | ||
devmode.go | ||
env.go | ||
export_test.go | ||
genconfig.go | ||
genconfig_test.go | ||
serverinit.go | ||
serverinit_test.go |