Mercurial > syslog2iptables
comparison syslog2iptables.rc @ 20:0d65c3de34fd
add better logging
author | carl |
---|---|
date | Sun, 08 Jan 2006 12:36:57 -0800 |
parents | 5dfe0138b4f9 |
children | 28fec0c67646 |
comparison
equal
deleted
inserted
replaced
19:13b2e663b553 | 20:0d65c3de34fd |
---|---|
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 SYSCONFDIR # conf file is here | 24 cd SYSCONFDIR # conf file is here |
25 SBINDIR/syslog2iptables -d 2 | 25 SBINDIR/syslog2iptables -d 3 |
26 RETVAL=$? | 26 RETVAL=$? |
27 pid=`pidof -s SBINDIR/syslog2iptables` | 27 pid=`pidof -s SBINDIR/syslog2iptables` |
28 if [ $pid ] | 28 if [ $pid ] |
29 then | 29 then |
30 success "Starting syslog2iptables :" | 30 success "Starting syslog2iptables :" |