Skip to content

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 10 Jun 13:17
· 81 commits to main since this release

v0.1.4 - Daemon Mode

Features

  • Daemon mode: Run tailr in background with --daemon, replacing nohup approach
  • Process management: --stop to stop running daemon, --status to check status
  • System service integration: --systemd generates systemd service file (Linux), --launchd generates launchd plist (macOS)
  • PID file management: Automatic PID file handling with custom path support via --pid-file
  • Log redirection: stdout/stderr redirected to log file in daemon mode, customizable with --log-file
  • Signal handling: Graceful shutdown on SIGINT/SIGTERM/SIGHUP
  • Version display: Show current version and GitHub link in settings panel footer

Usage

# Start in background
tailr --daemon --log /var/log/app /var/log/nginx

# Check status
tailr --status

# Stop daemon
tailr --stop

# Generate systemd service file
tailr --systemd --log /var/log/app | sudo tee /etc/systemd/system/tailr.service

# Generate launchd plist (macOS)
tailr --launchd --log /var/log/app > ~/Library/LaunchAgents/com.tailr.plist

Dependencies

  • Added daemonize = "0.5" - Unix daemonization
  • Added dirs = "5.0" - Cross-platform data directories

Fixes

  • Fixed empty entries after file truncation: When a log file is truncated (e.g., via logrotate copytruncate), the cached LineIndex had stale offsets from the larger file. Now detects truncation and rebuilds the index.
  • Fixed daemon mode failing to serve HTTP (fork must happen before tokio runtime)
  • Fixed test_filter_by_pattern_regex test failure (use builder pattern to compile regex)
  • Fixed settings footer hidden behind status bar

Full Changelog: v0.1.3...v0.1.4