diff options
Diffstat (limited to 'roles/clients/files/passerelle-dump-enp6s0.service')
-rw-r--r-- | roles/clients/files/passerelle-dump-enp6s0.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/clients/files/passerelle-dump-enp6s0.service b/roles/clients/files/passerelle-dump-enp6s0.service new file mode 100644 index 0000000..bc08156 --- /dev/null +++ b/roles/clients/files/passerelle-dump-enp6s0.service @@ -0,0 +1,12 @@ +[Unit] +Description=Capture enp6s0 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 enp6s0 -K -Z root -w /mnt/lv3/passerelle-dump/enp6s0-$VERSION.cap" + +[Install] +WantedBy=multi-user.target |