about summary refs log tree commit diff
path: root/README
diff options
context:
space:
mode:
authorSumner Evans <me@sumnerevans.com>2021-05-20 11:28:44 -0600
committerAlyssa Ross <hi@alyssa.is>2021-05-22 11:23:09 +0000
commit4398773a589bf59df5fa4f9c6eff3d3f1c1ab441 (patch)
tree8b37108058d0e06579c6fb4f954a4bb42714c8b8 /README
parentaf337a05c3bb073049dde5aa23eac89e9205031b (diff)
downloadpr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar.gz
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar.bz2
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar.lz
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar.xz
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.tar.zst
pr-tracker-4398773a589bf59df5fa4f9c6eff3d3f1c1ab441.zip
README: update instructions for running
Add instructions to the README for how to run the project using
systemd-socket-activate.  The s6-tcpserver command was incorrect.
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 4 insertions, 12 deletions
diff --git a/README b/README
index a28a66e..e756dbd 100644
--- a/README
+++ b/README
@@ -51,18 +51,10 @@ 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 \
-		pr-tracker [...]
+protocol.  It does not support binding its own sockets.  To run
+outside of a systemd unit, you can use systemd-socket-activate:
+
+	systemd-socket-activate -l 0.0.0.0:8000 pr-tracker [...]
 
 Further information on available command line arguments can be
 obtained with