Actions
Support #3366
closed
HM
HM
CentOS 7.x, systemd, suricata stopping when started by systemd, but not command-line
Support #3366:
CentOS 7.x, systemd, suricata stopping when started by systemd, but not command-line
Affected Versions:
Label:
Description
I've configured suricata 5.0.1 and it runs when i start on the command-line and continues to run. If I use the systemd startup script to start it, it starts, then within about 5-7 seconds it stops running.
(suricata.c:2916) <Notice> (SuricataMainLoop) -- Signal Received. Stopping engine.
[Unit]
Description=Suricata Intrusion Detection Service
After=syslog.target network-online.target
[Service]
StandardOutput=syslog
StandardError=syslog
EnvironmentFile=/etc/sysconfig/suricata
ExecStartPre=/bin/rm -f /var/run/suricata.pid
ExecStart=/usr/bin/suricata -c /etc/suricata/suricata.yaml --pidfile /var/run/suricata.pid -i ens192 -D
ExecReload=/bin/kill -USR2 $MAINPID
[Install]
WantedBy=multi-user.target
Actions