aboutsummaryrefslogtreecommitdiff
path: root/package/suricata/suricata.service
diff options
context:
space:
mode:
Diffstat (limited to 'package/suricata/suricata.service')
-rw-r--r--package/suricata/suricata.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/suricata/suricata.service b/package/suricata/suricata.service
new file mode 100644
index 0000000000..f5cd46ac48
--- /dev/null
+++ b/package/suricata/suricata.service
@@ -0,0 +1,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