Created attachment 460132 [details, diff] patch for files/suricata-3.2-init Currently, if you run /etc/init.d/suricata restart and the suricata process didn't really stop then start() will be called anyway because eend is always 0. Some suricata processes can take a very long time to stop. Attaching patch.
I think it would be better to use start-stop-daemon --retry option, instead of repetitively checking in while loop.
Created attachment 460310 [details, diff] patch for the init script Thanks for the tip!
Created attachment 460312 [details, diff] patch for conf.d file Allows user to set retry timeout in conf.d.
Updated