I'm trying to start flow-capture(1) installed from the port net-mgmt/flow-tools on a 9.1-RELEASE, but I'm not getting it working at all.
First of all the version of the flow-tools:
I've tried to run either the flow-capture via rc.conf or by command line, and the result is the same: the pid file is created, but the process dies immediatly without any trace.
The command line I'm using is:
As you can see the process writes the pid correctly, but no process is available with such pid, and in fact nothing is listening on port 4444.
I've then tried to inspect more the process using truss(1):
As you can see the process writes the pid and then exits, even if I suspect a subprocess should be running (there is a fork(2)).
Any idea of what is going wrong or about how to get flow-capture to tell me what is going wrong?
First of all the version of the flow-tools:
Code:
# pkg info flow-tools
flow-tools-0.68_7
I've tried to run either the flow-capture via rc.conf or by command line, and the result is the same: the pid file is created, but the process dies immediatly without any trace.
The command line I'm using is:
Code:
# flow-capture -w /var/db/flows/em1 -E 2G -n 287 -N 3 -d 1 0/0/4444
# cat /var/run/flow-capture.pid.4444
40744
# ps -p 40744
PID TT STAT TIME COMMAND
#
As you can see the process writes the pid correctly, but no process is available with such pid, and in fact nothing is listening on port 4444.
I've then tried to inspect more the process using truss(1):
Code:
# truss flow-capture -w /var/db/flows/em1 -E 2G -n 287 -N 3 -d 1 0/0/4444
...
fork() = 40751 (0x9f2f)
open("/var/run/flow-capture.pid.4444",O_WRONLY|O_CREAT|O_TRUNC,0644) = 3 (0x3)
write(3,"40751\n",6) = 6 (0x6)
close(3) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0)
sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0)
process exit, rval = 0
As you can see the process writes the pid and then exits, even if I suspect a subprocess should be running (there is a fork(2)).
Any idea of what is going wrong or about how to get flow-capture to tell me what is going wrong?