From 4398773a589bf59df5fa4f9c6eff3d3f1c1ab441 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 20 May 2021 11:28:44 -0600 Subject: 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. --- README | 16 ++++------------ README.license | 1 + 2 files changed, 5 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 diff --git a/README.license b/README.license index c49c11b..5c29c06 100644 --- a/README.license +++ b/README.license @@ -1,2 +1,3 @@ SPDX-License-Identifier: CC0-1.0 SPDX-FileCopyrightText: 2021 Alyssa Ross +SPDX-FileCopyrightText: Sumner Evans -- cgit 1.4.1