[Unit] Description=Dnscap Daemon After=network-online.target [Service] Type=simple User=root Group=root UMask=007 ExecStart=/usr/bin/dnscap -b -o pid_file=/var/run/dnscap.pid -i any -p -w - -t 600 -k /usr/bin/tshark -r - -T json | /usr/local/bin/report.py Restart=on-failure # Configures the time to wait before service is stopped forcefully. TimeoutStopSec=10 [Install] WantedBy=multi-user.target