Clarify how the -f option for daemon(8) interacts with other options

related to redirecting stdout and stderr.
This commit is contained in:
Ian Lepore 2019-10-02 23:06:17 +00:00
parent 5c7a45bb14
commit 0ec0f10d66
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353024

View File

@ -63,6 +63,11 @@ Change the current working directory to the root
.It Fl f
Redirect standard input, standard output and standard error to
.Pa /dev/null .
When this option is used together with any of the options related to file
or syslog output, the standard file descriptors are first redirected to
.Pa /dev/null ,
then stdout and/or stderr is redirected to a file or to syslog as
specified by the other options.
.It Fl S
Enable syslog output.
This is implicitly applied if other syslog parameters are provided.