Last active
October 20, 2017 06:33
-
-
Save jeffgeiger/fb3c74c1ab1b18cfca7d to your computer and use it in GitHub Desktop.
example systemd script for netsniff-ng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROM_INTERFACE=enp0s8 | |
USER=99 | |
GROUP=99 | |
INTERVAL=5min | |
DATA_DIR=/pcap/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=PCAP collection beast | |
After=network.target | |
[Service] | |
ExecStart=/sbin/netsniff-ng --in ${PROM_INTERFACE} --out ${DATA_DIR} --silent --user ${USER} --group ${GROUP} --interval ${INTERVAL} | |
Type=simple | |
EnvironmentFile=-/etc/sysconfig/netsniff-ng | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment