Title: Starting NTOP with daemontools

I think that is a good idea to start NTOP with daemontools, I provide here a little (and stupid, of course) script to make it possible.

Just configure ntop with the --prefix=/some/directory/ntop

Then install daemontools and put these lines into your run script:

#!/bin/sh
exec ./bin/ntop -u unprivilegeduser  -i ethX -E -w 3000 -S 1 \
2>&1 | multilog t s10000000000 n20 ./log


Naturally, DJB tells not to use "|" pipes into script, but it work for me, I'm not smarter as DJB... anyway you can run multilog by another script (even if you need logging...)

Then ln -s /some/directory/ntop /service

And all goes on :-)


Reply via email to