diff options
Diffstat (limited to 'mail/dk-milter/files/dk-milter.sh')
-rw-r--r-- | mail/dk-milter/files/dk-milter.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mail/dk-milter/files/dk-milter.sh b/mail/dk-milter/files/dk-milter.sh new file mode 100644 index 00000000000..df8704a2b03 --- /dev/null +++ b/mail/dk-milter/files/dk-milter.sh @@ -0,0 +1,24 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: dk-milter.sh,v 1.1.1.1 2005/07/20 19:42:50 tv Exp $ +# +# PROVIDE: dkmilter +# REQUIRE: DAEMON + +if [ -f /etc/rc.subr ]; then + . /etc/rc.subr +fi + +name="dkmilter" +rcvar=$name +command="@PREFIX@/sbin/dk-milter" +pidfile="/var/run/dk-milter.pid" +command_args="-hl -P ${pidfile} -p ${dkmilter_socket-local:/tmp/.dkmilter.sock}" + +if [ -f /etc/rc.subr ]; then + load_rc_config $name + run_rc_command "$1" +else + echo -n " ${name}" + ${command} ${dkmilter_flags} ${command_args} +fi |