Files
ja4sentinel/go.mod
Jacquin Antoine dcd6bd0a94
Some checks failed
Build RPM Package / Build RPM Packages (CentOS 7, Rocky 8/9/10) (push) Has been cancelled
feat: add systemd sdnotify support (ready, watchdog, stopping)
- Add github.com/coreos/go-systemd/v22/daemon dependency
- Signal SdNotifyReady after configuration is loaded
- Start watchdog goroutine that pings systemd every WatchdogSec/2
- Signal SdNotifyStopping during graceful shutdown
- Update systemd unit file:
  - Type=notify (instead of simple)
  - WatchdogSec=30 (auto-restart if service hangs)
  - NotifyAccess=main (only main process can notify)

Benefits:
- systemd knows when service is truly ready
- Automatic detection of hung/frozen service
- Better integration with systemd supervision
- More accurate service status reporting

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-01 01:06:20 +01:00

18 lines
353 B
Modula-2

module ja4sentinel
go 1.24.6
toolchain go1.24.13
require (
github.com/google/gopacket v1.1.19
github.com/psanford/tlsfingerprint v0.0.0-20251111180026-c742e470de9b
gopkg.in/yaml.v3 v3.0.1
)
require (
github.com/coreos/go-systemd/v22 v22.7.0 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
)