On 13.05.2010 06:46, Andy Dills wrote:
> 
> I'm working on getting p0f integrated with amavisd-new. Everything is 
> great, with the exception that I can't get the neccessary commands to 
> execute on boot.
> 
> I started with rc.local and that didn't work. So I made this simple script 
> in /usr/local/etc/rc.d/p0f:
> 
> ---
> 
> #!/bin/sh
> 
> # PROVIDE: p0f
> # REQUIRE: LOGIN
> # BEFORE:  securelevel
> # KEYWORD: shutdown
> 
> 
> . "/etc/rc.subr"
> 
> name="p0f"
> rcvar=`set_rcvar`
> 
> command="/usr/local/bin/p0f"
> command_args="-l 'tcp dst port 25' 2>&1 | /usr/local/bin/p0f-analyzer.pl 2345 
> &"
> pidfile="/var/run/$name.pid"

Perhaps, your "BEFORE:  securelevel" may be a culprit, it's too early
to run something from /usr/local/bin. Try to remove this line.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to