Files
bigbrother/services/bigbrother-capture.service

22 lines
500 B
Desktop File

[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