Some checks failed
Build RPM Package / Build RPM Packages (CentOS 7, Rocky 8/9/10) (push) Has been cancelled
- Add Reopenable interface in api/types.go for log rotation support - Add FileWriter.Reopen() method to reopen log files after rotation - Add MultiWriter.Reopen() method to propagate rotation to all writers - Update main.go to handle SIGHUP signal for systemctl reload - Add logrotate configuration file (packaging/logrotate/ja4sentinel) - Update systemd service with ExecReload for graceful rotation - Update architecture.yml with logrotate documentation - Update RPM spec and Dockerfile.package to include logrotate files - Bump version to 1.1.0 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
18 lines
392 B
Plaintext
18 lines
392 B
Plaintext
# Logrotate configuration for ja4sentinel
|
|
# Install to: /etc/logrotate.d/ja4sentinel
|
|
|
|
/var/log/ja4sentinel/*.log {
|
|
daily
|
|
missingok
|
|
rotate 7
|
|
compress
|
|
delaycompress
|
|
notifempty
|
|
create 0600 root root
|
|
sharedscripts
|
|
postrotate
|
|
# Send SIGHUP to ja4sentinel to reopen log files
|
|
/bin/systemctl reload ja4sentinel 2>/dev/null || true
|
|
endscript
|
|
}
|