varlink: also honour new env var $SYSTEMD_VARLINK_LISTEN in varlink_server_listen_auto()
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Jan 2024 10:01:28 +0000 (11:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Jan 2024 12:45:35 +0000 (13:45 +0100)
commit4a6fe5f05e6735a0f3ca331a5deec0544c13ec94
tree92ea1968fe2504f95509922c5b1326e63051156f
parent1752a8ee332eac2a2a83d5bdb1d3240694f2f4bf
varlink: also honour new env var $SYSTEMD_VARLINK_LISTEN in varlink_server_listen_auto()

varlink_server_listen_auto() is supposed to be the one-stop solution for
turning simple command line tools into IPC services. They aren't easy to
test/debug however, since you have to invoke them through a service
manager.

Let's make this easier: if the SYSTEMD_VARLINK_LISTEN env var is set,
let's listen on the socket specified therein. This makes things easier
to gdb: just run the service from the cmdline.
docs/ENVIRONMENT.md
src/shared/varlink.c