summaryrefslogtreecommitdiffstats
path: root/debian/suricata.service
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:39:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:39:52 +0000
commita95cd20bb8e569c5a5f43808555e90ea436b858f (patch)
tree7fb27265ca110c329d4d42336c979cab09fff04e /debian/suricata.service
parentAdding upstream version 1:7.0.3. (diff)
downloadsuricata-a95cd20bb8e569c5a5f43808555e90ea436b858f.tar.xz
suricata-a95cd20bb8e569c5a5f43808555e90ea436b858f.zip
Adding debian version 1:7.0.3-1.debian/1%7.0.3-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/suricata.service')
-rw-r--r--debian/suricata.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/suricata.service b/debian/suricata.service
new file mode 100644
index 0000000..aff9812
--- /dev/null
+++ b/debian/suricata.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Suricata IDS/IDP daemon
+After=network.target network-online.target
+Requires=network-online.target
+Documentation=man:suricata(8) man:suricatasc(8)
+Documentation=https://suricata.io/documentation/
+
+[Service]
+Type=forking
+#Environment=LD_PRELOAD=/usr/lib/libtcmalloc_minimal.so.4
+PIDFile=/run/suricata.pid
+ExecStart=/usr/bin/suricata -D --af-packet -c /etc/suricata/suricata.yaml --pidfile /run/suricata.pid
+ExecReload=/usr/bin/suricatasc -c reload-rules ; /bin/kill -HUP $MAINPID
+ExecStop=/usr/bin/suricatasc -c shutdown
+Restart=on-failure
+ProtectSystem=full
+ProtectHome=true
+
+[Install]
+WantedBy=multi-user.target