daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 24th, 2012 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:          iptraf logging at system startup
  4. # Required-Start:    
  5. # Required-Stop:    
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:      0 1 6
  8. # Short-Description: iptrag logging
  9. # Description:       Längere Bechreibung
  10. ### END INIT INFO
  11.  
  12.  
  13. # Aktionen
  14. case "$1" in
  15.     start)
  16.         iptraf -i eth1 -B -L /var/log/iptraf/$(date +%Y.%m.%d.%H.%M).log > /dev/null 2>&1
  17.         ;;
  18.     stop)
  19.         killall iptraf
  20.         ;;
  21. esac
  22.  
  23. exit 0
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top