comparison syslog2iptables.rc @ 27:28fec0c67646

make add/remove commands configureable
author carl
date Sun, 12 Feb 2006 10:54:03 -0800
parents 0d65c3de34fd
children
comparison
equal deleted inserted replaced
26:00bd0b0ef015 27:28fec0c67646
49 echo 49 echo
50 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog2iptables 50 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/syslog2iptables
51 ;; 51 ;;
52 restart|reload) 52 restart|reload)
53 $0 stop 53 $0 stop
54 $0 flush
54 $0 start 55 $0 start
55 RETVAL=$? 56 RETVAL=$?
57 ;;
58 flush)
59 /sbin/iptables -F INPUT
56 ;; 60 ;;
57 status) 61 status)
58 status syslog2iptables 62 status syslog2iptables
59 RETVAL=$? 63 RETVAL=$?
60 ;; 64 ;;
61 *) 65 *)
62 echo "Usage: syslog2iptables {start|stop|restart|status}" 66 echo "Usage: syslog2iptables {start|stop|restart|status|flush}"
63 exit 1 67 exit 1
64 esac 68 esac
65 exit $RETVAL 69 exit $RETVAL
66 70
67 # $Id$ 71 # $Id$