fRANz <[email protected]> writes:

> On Thu, Jan 29, 2015 at 10:54 PM, Christopher Barry
> <[email protected]> wrote:
>
>> what happens if you source /etc/rc.local instead?
>> as in:
>> [ -f /etc/rc.local ] && . /etc/rc.local
>
> Hi Christopher,
> I'm sorry, same behaviour: some commands were correctly invoked, for example:
>
> /sbin/ifconfig pflog0 up && /sbin/pflogd -f /dev/null
>
> but not tcpdump in this specific form:
>
> sudo nohup tcpdump -n -v -l -q -n -e -ttt -i pflog0 action block |
> logger -t pf -p local2.info &
>
> The complete file is:
>
> # cat /etc/rc.local
> /sbin/ifconfig pflog0 up && /sbin/pflogd -f /dev/null
> sudo nohup tcpdump -n -v -l -q -n -e -ttt -i pflog0 action block |
> logger -t pf -p local2.info &

Here nohup applies to tcpdump(1) only, not to logger(1).

-> nohup logger -t pf -p local2.info &

> I already tried full paths but don't help.
>
> Again,
> it's not a problem hack the rc file but when possible I avoid it, as
> suggested many times in this list ;-)

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to