teelim

command module
v0.0.0-...-10c43a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 8 Imported by: 0

README

teelim

Reads from stdin, and writes directly to given output path. Will ensure that file size never exceeds given max. Uses the fallocate syscall to truncate file from the start, requires a filesystem that supports FALLOC_FL_COLLAPSE_RANGE.

An example use is as an alternative to logrotate. By passing your service output through teelim you can guarantee a file size that never exceeds given max, but always keeps the latest "max" number of bytes.

e.g. ./gotosocial --config-path ./config.yaml server start | teelim -d 10MiB -m 90MiB -p 0600 log.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL