[Bug 160967] newsyslog(8) is not working

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 8 13:45:06 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=160967

David Bright <dab at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs at FreeBSD.org            |dab at freebsd.org
                 CC|                            |dab at freebsd.org

--- Comment #2 from David Bright <dab at freebsd.org> ---
I'm not sure what issue is being reported. Is it that after newsyslog is run:

  # newsyslog -n -v -F /var/log/mpd.log

that it shows a (compressed) rotated file being created:

  Compress all rotated log file(s)...
          gzip /var/log/mpd.log.0
          chmod 600 /var/log/mpd.log.0.gz

Yet when the log directory is listed that rotated file is not shown?

  # ls -la /var/log | grep mpd
  -rw-------   1 root   wheel      87198 23 сен 20:09 mpd.log

If so, this is expected behavior. The -n flag is specified on this invocation,
which causes a "dry run" of newsyslog; it prints what it would do in the
rotation, but doesn't actually do it.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list