Skip to content

Commit 6086a2c

Browse files
committed
Fixing documentation about default log destination
1 parent 85de522 commit 6086a2c

File tree

4 files changed

+55
-45
lines changed

4 files changed

+55
-45
lines changed

doc/wsddn.8

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
.\" Automatically generated by Pandoc 3.1.12.3
1+
.\" Automatically generated by Pandoc 3.7.0.2
22
.\"
3-
.TH "wsddn" "8" "" "WS\-Discovery Host Daemon" "System Manager\[cq]s Manual"
3+
.TH "wsddn" "8" "" "WS\-Discovery Host Daemon" "System Manager\(cqs Manual"
44
.SH NAME
5-
\f[B]wsddn\f[R] \[em] WS\-Discovery Host Daemon
5+
\f[B]wsddn\f[R] \(em WS\-Discovery Host Daemon
66
.SH SYNOPSIS
77
.PP
88
\f[CR]wsddn\f[R] \f[CR]\-\-help\f[R]
@@ -64,7 +64,7 @@ If it exists, the file is read and options specified in it are applied
6464
\f[I]if not already specified on command line\f[R].
6565
See CONFIG FILE below for information about its syntax and content.
6666
Content of the configuration file is re\-read upon SIGHUP signal.
67-
By default, if this option isn\[cq]t specified, no configuration file is
67+
By default, if this option isn\(cqt specified, no configuration file is
6868
read.
6969
.SS Daemon behavior options
7070
.TP
@@ -79,16 +79,16 @@ The equivalent config file option is \f[CR]log\-level\f[R]
7979
The path of the file to write the log output to.
8080
If not specified \f[CR]wsddn\f[R] outputs the log messages as follows
8181
.RS
82-
.IP \[bu] 2
82+
.IP \(bu 2
8383
If invoked without any daemon flags: to standard output
84-
.IP \[bu] 2
85-
If invoked with \[en]systemd: to standard output, with systemd severity
84+
.IP \(bu 2
85+
If invoked with \(ensystemd: to standard output, with systemd severity
8686
prefixes
87-
.IP \[bu] 2
88-
If invoked with \[en]unixd or \[en]launchd: to /var/log/wsddn.log
87+
.IP \(bu 2
88+
If invoked with \(enlaunchd: to standard output
89+
.IP \(bu 2
90+
If invoked with \(enunixd: to /dev/null (no logging)
8991
.PP
90-
If \[en]user option is used, the directory of the logfile must allow the
91-
specified user to create and delete files.
9292
The equivalent config file option is \f[CR]log\-file\f[R]
9393
.RE
9494
.TP
@@ -103,7 +103,7 @@ Set the path to PID file.
103103
If not specified no PID file is written.
104104
Send SIGHUP signal to the process ID in the PID file to reload
105105
configuration.
106-
If \[en]user option is used, the directory of the pidfile must allow the
106+
If \(enuser option is used, the directory of the pidfile must allow the
107107
specified user to create and delete files.
108108
The equivalent config file option is \f[CR]pid\-file\f[R]
109109
.TP
@@ -114,13 +114,13 @@ If group name is not specified, primary group of the username is used.
114114
.RS
115115
.PP
116116
If this option is not specified then the behavior is as follows:
117-
.IP \[bu] 2
117+
.IP \(bu 2
118118
If wsddn process is run under the root account it tries to use a special
119119
unprivileged account name (\f[CR]_wsddn\f[R]:\f[CR]_wsddn\f[R] on macOS,
120120
\f[CR]wsddn\f[R]:\f[CR]wsddn\f[R] otherwise) The user and group are
121121
created if they do not exist.
122122
Any failures in these steps stop the process.
123-
.IP \[bu] 2
123+
.IP \(bu 2
124124
Otherwise, wsddn uses the account it is run under.
125125
.PP
126126
The net effect of these rules is that wsddn under no circumstances will
@@ -134,12 +134,12 @@ communications should chroot into.
134134
This further limits any impact of potential network exploits into wsddn.
135135
If not specified the behavior is as follows
136136
.RS
137-
.IP \[bu] 2
137+
.IP \(bu 2
138138
If wsddn process is run under the root account: use
139139
\f[CR]/var/empty\f[R] on macOS and \f[CR]/var/run/wsddn\f[R] on other
140140
platforms.
141141
This directory will be created if it does not exist.
142-
.IP \[bu] 2
142+
.IP \(bu 2
143143
Otherwise: do not chroot
144144
.PP
145145
Note: do not use external methods to chroot wsddn process (e.g.\ using
@@ -192,13 +192,13 @@ WS\-Discovery protocol requires your machine to have a unique identifier
192192
that is stable across reboots or changes in networks.
193193
By default, \f[CR]wsddn\f[R] uses UUID version 5 with private namespace
194194
and the host name of the machine.
195-
This will remain stable as long as the hostname doesn\[cq]t change.
195+
This will remain stable as long as the hostname doesn\(cqt change.
196196
If desired, you can override this with a fixed UUID using this option.
197197
The equivalent config file option is \f[CR]uuid\f[R]
198198
.TP
199199
\f[CR]\-\-hostname\f[R] \f[I]name\f[R], \f[CR]\-H\f[R] \f[I]name\f[R]
200200
Override hostname to be reported to Windows machines.
201-
By default the local machine\[cq]s hostname (with domain part, if any,
201+
By default the local machine\(cqs hostname (with domain part, if any,
202202
removed) is used.
203203
If you set the name to \f[CR]:NETBIOS:\f[R] then Netbios hostname will
204204
be used.
@@ -259,12 +259,12 @@ gracefully stop network communications and exit.
259259
.SH FIREWALL SETUP
260260
Traffic for the following ports, directions and addresses must be
261261
allowed:
262-
.IP \[bu] 2
262+
.IP \(bu 2
263263
Incoming and outgoing traffic to udp/3702 with multicast destination:
264264
239.255.255.250 for IPv4 and ff02::c for IPv6
265-
.IP \[bu] 2
265+
.IP \(bu 2
266266
Outgoing unicast traffic from udp/3702
267-
.IP \[bu] 2
267+
.IP \(bu 2
268268
Incoming traffic to tcp/5357
269269
.PP
270270
You should further restrict the traffic to the (link\-)local subnet,
@@ -283,13 +283,13 @@ Most options are named and behave exactly the same as corresponding
283283
command line options.
284284
Exceptions are explained in\-depth below.
285285
.TP
286-
\f[CR]allowed\-address\-family\f[R] = \[lq]IPv4\[rq] | \[lq]IPv6\[rq]
286+
\f[CR]allowed\-address\-family\f[R] = \(lqIPv4\(rq | \(lqIPv6\(rq
287287
Restrict communications to the given address family.
288-
Valid values are \[lq]IPv4\[rq] or \[lq]IPv6\[rq] case\-insensitive.
288+
Valid values are \(lqIPv4\(rq or \(lqIPv6\(rq case\-insensitive.
289289
The equivalent command line options are \f[CR]\-\-ipv4only\f[R] and
290290
\f[CR]\-\-ipv6only\f[R]
291291
.TP
292-
\f[CR]chroot\f[R] = \[lq]path\[rq]
292+
\f[CR]chroot\f[R] = \(lqpath\(rq
293293
Same as \f[CR]\-\-chroot\f[R] command line option
294294
.TP
295295
\f[CR]hoplimit\f[R] = \f[I]number\f[R]
@@ -298,10 +298,10 @@ Same as \f[CR]\-\-hoplimit\f[R] command line option
298298
\f[CR]source\-port\f[R] = \f[I]number\f[R]
299299
Same as \f[CR]\-\-source\-port\f[R] command line option
300300
.TP
301-
\f[CR]hostname\f[R] = \[lq]\f[I]name\f[R]\[rq]
301+
\f[CR]hostname\f[R] = \(lq\f[I]name\f[R]\(rq
302302
Same as \f[CR]\-\-hostname\f[R] command line option
303303
.TP
304-
\f[CR]interfaces\f[R] = [ \[lq]\f[I]name\f[R]\[rq], \&... ]
304+
\f[CR]interfaces\f[R] = [ \(lq\f[I]name\f[R]\(rq, \&... ]
305305
Specify on which interfaces wsddn will be listening on.
306306
If no interfaces are specified, or the list is empty all suitable
307307
detected interfaces will be used.
@@ -313,19 +313,19 @@ The equivalent command line option is \f[CR]\-\-interface\f[R]
313313
\f[CR]log\-level\f[R] = \f[I]number\f[R]
314314
Same as \f[CR]\-\-log\-level\f[R] command line option
315315
.TP
316-
\f[CR]log\-file\f[R] = \[lq]path\[rq]
316+
\f[CR]log\-file\f[R] = \(lqpath\(rq
317317
Same as \f[CR]\-\-log\-file\f[R] command line option
318318
.TP
319319
\f[CR]log\-os\-log\f[R] = true/false
320320
This setting is only available on macOS.
321321
Setting it to \f[CR]true\f[R] is the same as \f[CR]\-\-log\-os\-log\f[R]
322322
command line option
323323
.TP
324-
\f[CR]member\-of\f[R] = \[lq]Workgroup/\f[I]name\f[R]\[rq] | \[lq]Domain/\f[I]name\f[R]\[rq]
324+
\f[CR]member\-of\f[R] = \(lqWorkgroup/\f[I]name\f[R]\(rq | \(lqDomain/\f[I]name\f[R]\(rq
325325
Report whether the host is a member of a given workgroup or domain.
326-
To specify a workgroup use \[lq]Workgroup/name\[rq] syntax.
327-
To specify a domain use \[lq]Domain/name\[rq].
328-
The \[lq]workgroup/\[rq] and \[lq]domain/\[rq] prefixes are not case
326+
To specify a workgroup use \(lqWorkgroup/name\(rq syntax.
327+
To specify a domain use \(lqDomain/name\(rq.
328+
The \(lqworkgroup/\(rq and \(lqdomain/\(rq prefixes are not case
329329
sensitive.
330330
If not specified workgroup/domain membership is detected from SMB
331331
configuration.
@@ -334,19 +334,19 @@ WORKGROUP.
334334
The equivalent command line options are \f[CR]\-\-domain\f[R] and
335335
\f[CR]\-\-workgroup\f[R].
336336
.TP
337-
\f[CR]pid\-file\f[R] = \[lq]path\[rq]
337+
\f[CR]pid\-file\f[R] = \(lqpath\(rq
338338
Same as \f[CR]\-\-pid\-file\f[R] command line option
339339
.TP
340-
\f[CR]smb\-conf\f[R] = \[lq]path\[rq]
340+
\f[CR]smb\-conf\f[R] = \(lqpath\(rq
341341
Same as \f[CR]\-\-smb\-conf\f[R] command line option
342342
.TP
343-
\f[CR]metadata\f[R] = \[lq]path\[rq]
343+
\f[CR]metadata\f[R] = \(lqpath\(rq
344344
Same as \f[CR]\-\-metadata\f[R] command line option
345345
.TP
346-
\f[CR]user\f[R] = \[lq]username[:groupname]\[rq]
346+
\f[CR]user\f[R] = \(lqusername[:groupname]\(rq
347347
Same as \f[CR]\-\-user\f[R] command line option
348348
.TP
349-
\f[CR]uuid\f[R] = \[lq]xxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx\[rq]
349+
\f[CR]uuid\f[R] = \(lqxxxxxxxx\-xxxx\-xxxx\-xxxx\-xxxxxxxxxxxx\(rq
350350
Same as \f[CR]\-\-uuid\f[R] command line option
351351
.SH EXAMPLES
352352
.SS Run as a traditional Unix daemon

doc/wsddn.8.html

Lines changed: 15 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/wsddn.8.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Unless otherwise specified options cannot be repeated. The options are as follow
4949

5050
* If invoked without any daemon flags: to standard output
5151
* If invoked with --systemd: to standard output, with systemd severity prefixes
52-
* If invoked with --unixd or --launchd: to /var/log/wsddn.log
52+
* If invoked with --launchd: to standard output
53+
* If invoked with --unixd: to /dev/null (no logging)
5354

54-
If --user option is used, the directory of the logfile must allow the specified user to create and delete files.
5555
The equivalent config file option is `log-file`
5656

5757
`--log-os-log`

installers/wsddn.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
# - If invoked without any daemon flags: to standard output
104104
# - If invoked with --systemd: to standard output, with systemd severity
105105
# prefixes
106-
# - If invoked with --unixd or --launchd: to /var/log/wsddn.log
106+
# - If invoked with --launchd: to standard output
107+
# - If invoked with --unixd: to /dev/null (no logging)
107108

108109
#log-file = "/path/to/log-file.log"
109110

0 commit comments

Comments
 (0)