-
-
Save isMTv/53c667ac2709f5e73d01ffffd922f20d to your computer and use it in GitHub Desktop.
/etc/systemd/system/suricata.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat > /etc/systemd/system/suricata.service << EOF | |
[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-ids.org/docs/ | |
[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 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment