diff options
Diffstat (limited to 'usr.sbin/daemon/daemon.8')
| -rw-r--r-- | usr.sbin/daemon/daemon.8 | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/usr.sbin/daemon/daemon.8 b/usr.sbin/daemon/daemon.8 index fce08bc90e62..a1a56de03d4a 100644 --- a/usr.sbin/daemon/daemon.8 +++ b/usr.sbin/daemon/daemon.8 @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 18, 2023 +.Dd January 28, 2026 .Dt DAEMON 8 .Os .Sh NAME @@ -98,10 +98,23 @@ or both This value specifies what is sent to syslog and the log file. The default is .Cm 3 . +.It Fl M , Fl -output-file-mode Ar mode +Specify the file +.Ar mode +to use when creating the +.Pa output_file . +The mode is interpreted using +.Xr chmod 1 +style semantics. +This option is useful when the daemonized process or external log +collectors require group or world access to the output file. +The default is +.Cm 0600 . .It Fl o , Fl -output-file Ar output_file Append output from the daemonized process to .Pa output_file . -If the file does not exist, it is created with permissions 0600. +If the file does not exist, it is created with the default file +.Ar mode . When this option is used together with options .Fl -change-dir and |
