On systems with /var/run linked to /run, net-analyzer/snort-2.9.2.3 fails to start after a reboot due to the /var/run/snort directory being removed from tmpfs. Reproducible: Always Steps to Reproduce: 1.Install net-analyzer/snort 2.Link /var/run to /run (If not already done) 3.Reboot system Actual Results: Snort fails to start with the following error: /etc/init.d/snort[13204]: ERROR: snort failed to start Patching the init script with the following check for /var/run/snort fixes the issue.
Created attachment 336030 [details] patch for snort.rc11
It should of course stop moving /var/run/foo altogether.
Please use checkpath, not mkdir.
Created attachment 336310 [details] Use checkpath not mkdir As requested.
Declaring intention to commit Peter Wilmott's second patch. If opposed, please state your objection.
+*snort-2.9.2.3-r1 (10 Apr 2013) + + 10 Apr 2013; Tony Vroon <chainsaw@gentoo.org> +snort-2.9.2.3-r1.ebuild, + +files/snort.rc12: + Init script fixes by Brian De Wolf to cease using deprecated opts variable, + closes bug #447780. /run tmpfs coping measures by Peter Wilmott close bug + #452786. Ebuild ported to EAPI 5, using REQUIRED_USE and dropping now + unnecessary die statements for ebuild helper functions. Thank you for your contribution to Gentoo Linux Peter. Sorry for the delay, as I am not the maintainer there is some red tape for me to wade through.