Mercurial > syslog2iptables
comparison syslog2iptables.rc @ 7:390ac4e01472
initial coding
author | carl |
---|---|
date | Fri, 02 Dec 2005 20:36:01 -0800 |
parents | 128cae6f3459 |
children | d76f9ff42487 |
comparison
equal
deleted
inserted
replaced
6:128cae6f3459 | 7:390ac4e01472 |
---|---|
20 start) | 20 start) |
21 # Start daemons. | 21 # Start daemons. |
22 echo -n "Starting syslog2iptables: " | 22 echo -n "Starting syslog2iptables: " |
23 if [ ! -f /var/lock/subsys/syslog2iptables ]; then | 23 if [ ! -f /var/lock/subsys/syslog2iptables ]; then |
24 cd /etc # conf file is here | 24 cd /etc # conf file is here |
25 /usr/local/sbin/syslog2iptables -d 10 | 25 /usr/local/sbin/syslog2iptables -d 2 |
26 RETVAL=$? | 26 RETVAL=$? |
27 pid=`pidof -s /usr/local/sbin/syslog2iptables` | 27 pid=`pidof -s /usr/local/sbin/syslog2iptables` |
28 if [ $pid ] | 28 if [ $pid ] |
29 then | 29 then |
30 success "Starting syslog2iptables :" | 30 success "Starting syslog2iptables :" |