v0.1.4
v0.1.4 - Daemon Mode
Features
- Daemon mode: Run tailr in background with
--daemon, replacingnohupapproach - Process management:
--stopto stop running daemon,--statusto check status - System service integration:
--systemdgenerates systemd service file (Linux),--launchdgenerates 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.plistDependencies
- 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_regextest failure (use builder pattern to compile regex) - Fixed settings footer hidden behind status bar
Full Changelog: v0.1.3...v0.1.4