summaryrefslogtreecommitdiff
path: root/community/darkstat/darkstat.service
diff options
context:
space:
mode:
Diffstat (limited to 'community/darkstat/darkstat.service')
-rw-r--r--community/darkstat/darkstat.service17
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