comparison dnsbl.rc @ 42:afcf403709ef

updates for 3.2, try to drop root privileges
author carl
date Mon, 05 Jul 2004 13:09:44 -0700
parents d95af8129dfa
children 6b79046b18c2
comparison
equal deleted inserted replaced
41:d95af8129dfa 42:afcf403709ef
20 start) 20 start)
21 # Start daemons. 21 # Start daemons.
22 echo -n "Starting dnsbl-milter: " 22 echo -n "Starting dnsbl-milter: "
23 if [ ! -f /var/lock/subsys/dnsbl ]; then 23 if [ ! -f /var/lock/subsys/dnsbl ]; then
24 cd /etc/dnsbl # conf file is here 24 cd /etc/dnsbl # conf file is here
25 su -l dnsbl -s /bin/sh -c "/usr/sbin/dnsbl -d -p local:/var/run/dnsbl/dnsbl.sock " 25 #su -l dnsbl -s /bin/sh -c "/usr/sbin/dnsbl -d -p local:/var/run/dnsbl.sock "
26 /usr/sbin/dnsbl -d -p local:/var/run/dnsbl.sock
26 RETVAL=$? 27 RETVAL=$?
27 pid=`pidof -s /usr/sbin/dnsbl` 28 pid=`pidof -s /usr/sbin/dnsbl`
28 if [ $pid ] 29 if [ $pid ]
29 then 30 then
30 success "Starting dnsbl milter:" 31 success "Starting dnsbl milter:"