Public bug reported:

AFAICT, suricata cleans up its own pidfile when stopped by start-stop-
daemon. As a result, the instruction "rm $PIDFILE > /dev/null 2>&1" in
the stop clause of the case statement in /etc/init.d/suricata exits with
an error status, which causes the entire script to as well (since it's
run by sh -e).

Attached patch adds -f to the rm instruction, so that it never fails.

** Affects: suricata (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "suricata_init.patch"
   
https://bugs.launchpad.net/bugs/1119769/+attachment/3521289/+files/suricata_init.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1119769

Title:
  initscript fail stopping suricata

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/suricata/+bug/1119769/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to