diff options
Diffstat (limited to 'mail/dkim-milter/files/dkim-milter.sh')
-rw-r--r-- | mail/dkim-milter/files/dkim-milter.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mail/dkim-milter/files/dkim-milter.sh b/mail/dkim-milter/files/dkim-milter.sh new file mode 100644 index 00000000000..98b8e5322a3 --- /dev/null +++ b/mail/dkim-milter/files/dkim-milter.sh @@ -0,0 +1,27 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: dkim-milter.sh,v 1.1.1.1 2005/10/27 19:49:07 minskim Exp $ +# +# PROVIDE: dkimmilter +# REQUIRE: DAEMON +# BEFORE: mail + +dkimmilter_flags="-h -l -p /var/run/dkimmilter.sock" + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="dkimmilter" +rcvar=$name +command="@PREFIX@/sbin/dkim-milter" +pidfile="/var/run/${name}.pid" +command_args="-P ${pidfile}" + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${dkimmilter_flags} ${command_args} +fi |