|
Wednesday, 28 March 2007
Init script for tshark
I need to capture packets in a network for post-mortem analysis. I wanted tshark to start upon boot on a Debian etch-testing but couldn't find a start script for it. I used snort's as a basis to write my own. Just make sure you change the DAEMON_OPTIONS to suit your own needs.
Subscribe to:
Post Comments (Atom)
4 comments:
nice script, but I got a syntax error here:
/sbin/start-stop-daemon --stop --signal 18 --quiet --user root --group root \
--exec $DAEMON >/dev/null && result="running." && exitval=0
You probably meant:
/sbin/start-stop-daemon --stop --signal 18 --quiet --user root --group root \
--exec $DAEMON >/dev/null && result="running." & exitval=0
When i run this nothing happens? I put in all the info and changed what the user posted. and run it with start and nothing happens i then run status and says not running????
Thank you for sharing this script.
I added a few lines which my Debian is asking for (plus some free extra), added after line 1 of your script:
### BEGIN INIT INFO
# Provides: wireshark
# Required-Start: $local_fs $network $time
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: ethernet capture service on br0 interface
### END INIT INFO
Best regards,
Listad79ATjahoo.de
Hi thanks for postinng this
Post a Comment