comparison syslog2iptables.rc @ 10:5dfe0138b4f9

initial coding
author carl
date Thu, 08 Dec 2005 13:58:08 -0800
parents d76f9ff42487
children 0d65c3de34fd
comparison
equal deleted inserted replaced
9:d76f9ff42487 10:5dfe0138b4f9
19 case "$1" in 19 case "$1" in
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 SYSCONFDIR # conf file is here
25 /usr/local/sbin/syslog2iptables -d 2 25 SBINDIR/syslog2iptables -d 2
26 RETVAL=$? 26 RETVAL=$?
27 pid=`pidof -s /usr/local/sbin/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 :"
31 touch /var/lock/subsys/syslog2iptables 31 touch /var/lock/subsys/syslog2iptables
32 echo 32 echo