Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- ### BEGIN INIT INFO
- # Provides: iptraf logging at system startup
- # Required-Start:
- # Required-Stop:
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: iptrag logging
- # Description: Längere Bechreibung
- ### END INIT INFO
- # Aktionen
- case "$1" in
- start)
- iptraf -i eth1 -B -L /var/log/iptraf/$(date +%Y.%m.%d.%H.%M).log > /dev/null 2>&1
- ;;
- stop)
- killall iptraf
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement