]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
suricata: Remove PID file on stop
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 1 May 2019 15:03:06 +0000 (17:03 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 1 May 2019 16:04:15 +0000 (18:04 +0200)
commit62910a28a690338799ba53a423e9541c537fb3b0
tree29aa596c39cd3d130cefbe9775a08e8e506c1062
parent50b35e0f8f19d14182fa485430fc26c9c2738350
suricata: Remove PID file on stop

Force the initscript to remove the PID file when calling "stop" section.

If suricata crashes during startup, the PID file still remains and the service
cannot be started anymore until the file has been deleted.

Now when calling "stop" or "restart" the PID file will be deleted and the service
can be used again.

Fixes #12067.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/system/suricata