Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2010 15:50:57 +0700
From:      Eugene Grosbein <eugen@grosbein.pp.ru>
To:        Andy Dills <andy@xecu.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Why doesn't this startup script execute on boot?
Message-ID:  <4BEBBD71.5020305@grosbein.pp.ru>
In-Reply-To: <20100512193814.L37652@shell.xecu.net>
References:  <20100512193814.L37652@shell.xecu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BEBBD71.5020305>