freebsd-ports/mail/py-apolicy/files/apolicyd.in
Martin Wilke c5cf5fc490 ACL Policy Daemon is a program that communicates with the Postfix MTA using the
Policy Delegation Protocol implementing an ACL (Access Control List) system,
making very easy to improve and create nice controls on your e-mail traffic.
You can use it to verify SPF records too.

WWW: http://www.apolicy.org

PR:		ports/129162
Submitted by:	Chifeng QU <chifeng at gmail.com>
2008-11-29 21:02:39 +00:00

35 lines
647 B
Bash

#!/bin/sh
# Start or stop apolicyd
# $FreeBSD$
# PROVIDE: apolicyd
# REQUIRE: TWISTD
# KEYWORD: shutdown
#
prefix=%%PREFIX%%
# Define these apolicyd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
. %%RC_SUBR%%
name="apolicyd"
rcvar=`set_rcvar`
command="%%LOCALBASE%%/bin/twistd"
pidfile="/var/run/apolicyd.pid"
logfile="/var/log/apolicyd.log"
load_rc_config $name
: ${apolicyd_enable="NO"}
command_args="--pidfile=${pidfile} -y %%PYTHON_SITELIBDIR%%/apolicy/server.py -q --logfile=${logfile} 2>&1 >/dev/null"
procname="%%PYTHON_CMD%%"
run_rc_command "$1"