DevGoals / pulledpork

Automatically exported from code.google.com/p/pulledpork
GNU General Public License v2.0
0 stars 0 forks source link

SIGHUP not working on OpenBSD #161

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want pulledpork to send the HUP signal to snort and as such have defined the 
pid_path=/var/run/snort_em1.pid parameter in its config file. The problem is 
that snort creates this PID file with permission 600 and belongs to user root 
and group wheel although I start snort with the "-u snort -g snort" parameters.

I run pulledpork as user snort too and due to that the SIGHUP fails as you can 
see here:

Permission denied at /usr/local/bin/pulledpork.pl line 1007.
        main::sig_hup('/var/run/snort_em1.pid') called at /usr/local/bin/pulledpork.pl line 2022

Any ideas what can be done here? I would like to avoid having to run pulledpork 
as root.

Original issue reported on code.google.com by hostingn...@gmail.com on 11 Oct 2014 at 11:27