aboutsummaryrefslogtreecommitdiff
path: root/package/suricata/suricata.service
blob: f5cd46ac48dabcb8896d63a64edd88a72e6f64b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=Suricata Intrusion Detection Service
After=network.target

[Service]
EnvironmentFile=-/etc/default/suricata
ExecStartPre=/bin/rm -f /var/run/suricata.pid
ExecStartPre=/usr/bin/mkdir -p /var/log/suricata
ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml -i eth0 --pidfile /var/run/suricata.pid
ExecReload=/bin/kill -USR2 $MAINPID
Restart=always

[Install]
WantedBy=multi-user.target