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.
This commit is contained in:
Sumner Evans 2021-05-20 11:28:44 -06:00 committed by Alyssa Ross
parent af337a05c3
commit 4398773a58
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0
2 changed files with 4 additions and 11 deletions

14
README
View file

@ -51,18 +51,10 @@ standard input.
pr-tracker expects the socket(s) for it to listen on to be set up for 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 it by a service supervisor, using the systemd socket activation
protocol. It does not support binding its own sockets, but it can protocol. It does not support binding its own sockets. To run
still be run outside of systemd using by implementing the same outside of a systemd unit, you can use systemd-socket-activate:
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 \ systemd-socket-activate -l 0.0.0.0:8000 pr-tracker [...]
fdmove 3 0 \
env LISTEN_FDS=1 \
getpid LISTEN_PID \
redirfd -r 0 /var/lib/pr-tracker/token \
pr-tracker [...]
Further information on available command line arguments can be Further information on available command line arguments can be
obtained with obtained with

View file

@ -1,2 +1,3 @@
SPDX-License-Identifier: CC0-1.0 SPDX-License-Identifier: CC0-1.0
SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is> SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
SPDX-FileCopyrightText: Sumner Evans <me@sumnerevans.com>