diff options
Diffstat (limited to 'community/darkstat/darkstat.service')
-rw-r--r-- | community/darkstat/darkstat.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/darkstat/darkstat.service b/community/darkstat/darkstat.service new file mode 100644 index 000000000..b92eff85c --- /dev/null +++ b/community/darkstat/darkstat.service @@ -0,0 +1,17 @@ +[Unit] +Description=Network statistics gatherer (packet sniffer) +After=network.target + +[Service] +Type=simple +EnvironmentFile=/etc/conf.d/darkstat.conf +PIDFile=/var/darkstat/darkstat.pid +ExecStart=/usr/sbin/darkstat --user "darkstat" --chroot "/var/darkstat" \ + --import "darkstat.dat" --export "darkstat.dat" \ + --pidfile /var/darkstat/darkstat.pid \ + -b 0.0.0.0 \ + -i "$DARKSTAT_IFACE" $DARKSTAT_ARGS +ExecStopPost=/bin/rm -f /var/darkstat/darkstat.pid + +[Install] +WantedBy=multi-user.target |