Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
 
 
 
 
 
 

25 lines
383 B

#!/bin/sh
#
# $OpenBSD: spamlogd,v 1.2 2011/08/08 17:13:31 robert Exp $
daemon="/usr/libexec/spamlogd"
. /etc/rc.d/rc.subr
rc_reload=NO
rc_pre() {
[ X"${spamd_flags}" != X"NO" -a X"${spamd_black}" = X"NO" ]
if pfctl -si | grep -q Enabled; then
ifconfig pflog0 create
if ifconfig pflog0; then
ifconfig pflog0 up
else
return 1
fi
else
return 1
fi
}
rc_cmd $1