Improve the displayConfig output and route it through the standard logging system instead of STDERR. Include the man Makefile.

This commit is contained in:
Mike Brady
2022-10-12 13:52:05 +01:00
parent 16ca1c9fa5
commit 6e9ebe6e92
4 changed files with 114 additions and 26 deletions
+11
View File
@@ -0,0 +1,11 @@
shairport-sync.7: shairport-sync.7.xml
xmltoman shairport-sync.7.xml > shairport-sync.7
shairport-sync.html: shairport-sync.7.xml
xsltproc xmltoman.xsl shairport-sync.7.xml > shairport-sync.html
all: shairport-sync.7 shairport-sync.html
clean:
rm shairport-sync.7
rm shairport-sync.html
+1 -3
View File
@@ -74,11 +74,9 @@ Read configuration settings from \fIfilename\f1. The default is to read them fro
Instruct shairport-sync to demonise itself. It will write its Process ID (PID) to a file, usually at \fI/var/run/shairport-sync/shairport-sync.pid\f1, which is used by the \fB-k\f1, \fB-D\f1 and \fB-R\f1 options to locate the daemon at a later time. See also the \fB-j\f1 option. Only available if shairport-sync has been compiled with libdaemon support.
.TP
\fB--displayConfig\f1
This will display information relating to the configuration of Shairport Sync. It can be very useful for debugging. The information displayed is the version string (which indicates the build options used when \fBshairport-sync\f1 was built), the contents of the command line that invoked Shairport Sync, the name of the configuration file and the active settings therein.
This logs information relating to the configuration of Shairport Sync. It can be very useful for debugging. The information logged is some host OS information, the Shairport Sync version string (which indicates the build options used when \fBshairport-sync\f1 was built), the contents of the command line that invoked Shairport Sync, the name of the configuration file and the active settings therein.
If this is the only option on the command line, \fBshairport-sync\f1 will terminate after displaying the information.
Due to a limitation, \fB--displayConfig\f1 always outputs to \fISTDERR\f1, irrespective of the setting of \fB--log-to-syslog\f1.
.TP
\fB-E \f1\fIprogram\f1\fB | --on-stop=\f1\fIprogram\f1
Execute \fIprogram\f1 when playback has ended. Specify the full path to the program, e.g. \fI/usr/bin/logger\f1. Executable scripts can be used, but they must have the appropriate shebang (\fI#!/bin/sh\f1) in the headline.
+3 -4
View File
@@ -206,15 +206,14 @@
<option>
<p><opt>--displayConfig</opt></p>
<optdesc><p>
This will display information relating to the configuration of Shairport Sync.
It can be very useful for debugging. The information displayed is the version string
This logs information relating to the configuration of Shairport Sync.
It can be very useful for debugging. The information logged is
some host OS information, the Shairport Sync version string
(which indicates the build options used when <opt>shairport-sync</opt> was built),
the contents of the command line that invoked Shairport Sync,
the name of the configuration file and the active settings therein.</p>
<p>If this is the only option on the command line, <opt>shairport-sync</opt> will
terminate after displaying the information.</p>
<p>Due to a limitation, <opt>--displayConfig</opt> always outputs to <file>STDERR</file>,
irrespective of the setting of <opt>--log-to-syslog</opt>.</p>
</optdesc>
</option>