summaryrefslogtreecommitdiffstats
path: root/roles/clients/files/passerelle-dump-virbr0.service
blob: cd09440a2c81069e358a4c734828b5b2eb8b55bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Capture virbr0 traffics with tcpdump
Requires=network-online.target
After=network-online.target

[Service]
Type=simple
# Note you need to escape percentage sign
ExecStart=/bin/bash -c "VERSION=$(date +%%Y%%m%%d%%H%%M%%S);tcpdump -i virbr0 -K -Z root -w /mnt/lv3/passerelle-dump/virbr0-$VERSION.cap"

[Install]
WantedBy=multi-user.target