]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commitdiff
ids.cgi: Use the PID file to find suricata
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 12:16:43 +0000 (14:16 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Aug 2024 12:16:43 +0000 (14:16 +0200)
The process changes it name to "Suricata-Main" which is why the previous
method did not work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/ids.cgi

index d44ce1788b5a3ad98fa6088d207e4bde3453825d..502e2a125be2c958444ea27831c5b291682dc27e 100644 (file)
@@ -1007,7 +1007,7 @@ sub show_mainpage() {
 
        &Header::ServiceStatus({
                $Lang::tr{'intrusion prevention system'} => {
-                       "process" => "suricata",
+                       "pidfile" => "/var/run/suricata.pid",
                },
        });