~sumner/pr-tracker

cd702f9d7908cd0e8a46145373dca2e52fa37913 — Sumner Evans 6 months ago 8ed1a67
readme: update instructions for running

Add instructions to the README for how to run the project using
systemd-socket-activate.
2 files changed, 6 insertions(+), 11 deletions(-)

M .editorconfig
M README
M .editorconfig => .editorconfig +1 -0
@@ 13,6 13,7 @@ trim_trailing_whilespace = true

[README]
indent_style = tabs
max_line_length = 70

[*.rs]
indent_size = 4

M README => README +5 -11
@@ 51,17 51,11 @@ standard input.

pr-tracker expects the socket(s) for it to listen on to be set up for
it by a service supervisor, using the systemd socket activation
protocol.  It does not support binding its own sockets, but it can
still be run outside of systemd using by implementing the same
interface using utility programs, such as in this example that makes
use of the s6-networking[1] and execline[2] packages (example is
written in POSIX shell, not execline):

	s6-tcpserver 0.0.0.0 8000 \
		fdmove 3 0 \
		env LISTEN_FDS=1 \
		getpid LISTEN_PID \
		redirfd -r 0 /var/lib/pr-tracker/token \
protocol. It does not support binding its own sockets. Here is an
example of how run it with systemd-socket-activate:

	systemd-socket-activate \
		-l 0.0.0.0:8000 \
		pr-tracker [...]

Further information on available command line arguments can be