From 7076e6d0b25d893dd98052ef5acd6ac8ed1e76f1 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sat, 6 Jun 2020 13:42:15 +0300 Subject: [PATCH] man: Explain the limitations of "pulseaudio --check" --- man/pulseaudio.1.xml.in | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/man/pulseaudio.1.xml.in b/man/pulseaudio.1.xml.in index fdfb6e71b..4b9f085d3 100644 --- a/man/pulseaudio.1.xml.in +++ b/man/pulseaudio.1.xml.in @@ -110,7 +110,23 @@ License along with PulseAudio; if not, see .

Return 0 as return code when the PulseAudio daemon is already running for the calling user, or non-zero otherwise. Produces no output on the console except for errors - to stderr.

+ to stderr.

+ +

Note that a non-zero return value doesn't necessarily mean that + PulseAudio is not usable. Even if the server is not running, it + may get automatically started via PulseAudio's autospawning + mechanism or systemd's socket activation, or the environment might + be such that checking for processes doesn't work (for example, the + running server might not show up in a container, even if the + server is accessible via a socket). Also disabling PID files with + --use-pid-file=no prevents --check from + detecting running servers.

+ +

A more robust check in most situations would be to try + establishing a client connection to the server. Unfortunately + there's currently no --check-connection option to + replace --check, but running "pactl info" could be a + pretty good substitute.