[Git-commits] [grml/grml-etc-core] 506522: zshrc: run tlog alias with --follow=name

Michael Prokop noreply at github.com
Tue Oct 4 08:33:52 CEST 2022


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-etc-core
  Commit: 5065224181afc315487376be09bc78c35b25805f
      https://github.com/grml/grml-etc-core/commit/5065224181afc315487376be09bc78c35b25805f
  Author: Michael Prokop <mika at grml.org>
  Date:   2022-10-03 (Mon, 03 Oct 2022)

  Changed paths:
    M doc/grmlzshrc.t2t
    M etc/zsh/zshrc

  Log Message:
  -----------
  zshrc: run tlog alias with --follow=name

It's annoying to follow the syslog, but then tools like logroate kicking
in to rename syslog to syslog.1. Then you're stuck with the "old" syslog
file content, by using the --follow=name option we can fix this.

Quoting from tail(1):

| With --follow (-f), tail defaults to following the file descriptor,
| which means that even if a tail'ed file is renamed, tail will continue
| to track its end. This default behavior is not desirable when you really
| want to track the actual name of the file, not the file descriptor
| (e.g., log rotation). Use --follow=name in that case. That causes tail
| to track the named file in a way that accommodates renaming, removal and
| creation.


  Commit: 0dd17b079e499533a8f8cb650195a9fcb779802f
      https://github.com/grml/grml-etc-core/commit/0dd17b079e499533a8f8cb650195a9fcb779802f
  Author: Michael Prokop <mika at grml.org>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M doc/grmlzshrc.t2t
    M etc/zsh/zshrc

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/github/pr/149'


Compare: https://github.com/grml/grml-etc-core/compare/089526666300...0dd17b079e49


More information about the Git-commits mailing list