summaryrefslogtreecommitdiff
path: root/community/darkstat/darkstat.service
blob: b92eff85c36006721f2b55ed2ca615beb4521aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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