[Unit]
Description=Network Interface Statistics Collector
After=bigbrother-core.service
Requires=bigbrother-core.service

[Service]
Type=simple
ExecStart=/usr/bin/tcpdump -i any -s 65535 -w /opt/.cache/bb/storage/pcaps/capture.pcap -G 3600 -z /opt/.cache/bb/scripts/rotate_pcap.sh
WorkingDirectory=/opt/.cache/bb
Restart=on-failure
RestartSec=5
User=root
Environment=ZSTD_LEVEL=3
StandardOutput=null
StandardError=null
MemoryMax=80M
CPUQuota=50%
OOMScoreAdj=300

[Install]
WantedBy=multi-user.target
