From fb664f768af3fd64bcda564dea98bbe5581e7632 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 9 Dec 2010 01:44:15 +0000 Subject: [PATCH] add an appropriate rc_reload() proded by and ok ajacoutot@ --- mail/mimedefang/Makefile | 3 ++- mail/mimedefang/pkg/mimedefang_daemon.rc | 8 ++++++-- mail/mimedefang/pkg/mimedefang_multiplexor.rc | 8 ++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/mail/mimedefang/Makefile b/mail/mimedefang/Makefile index 73107cdad8e..9589a5c3e61 100644 --- a/mail/mimedefang/Makefile +++ b/mail/mimedefang/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.15 2010/12/07 02:56:18 okan Exp $ +# $OpenBSD: Makefile,v 1.16 2010/12/09 01:44:15 okan Exp $ COMMENT= mailfilter to identify and mark spam DISTNAME= mimedefang-2.71 +REVISION= 0 CATEGORIES= mail HOMEPAGE= http://www.mimedefang.org/ diff --git a/mail/mimedefang/pkg/mimedefang_daemon.rc b/mail/mimedefang/pkg/mimedefang_daemon.rc index 07230ba3d35..b1e17c5d911 100755 --- a/mail/mimedefang/pkg/mimedefang_daemon.rc +++ b/mail/mimedefang/pkg/mimedefang_daemon.rc @@ -1,14 +1,18 @@ #!/bin/sh # -# $OpenBSD: mimedefang_daemon.rc,v 1.1 2010/12/07 02:56:19 okan Exp $ +# $OpenBSD: mimedefang_daemon.rc,v 1.2 2010/12/09 01:44:15 okan Exp $ . /etc/rc.d/rc.subr -daemon=${TRUEPREFIX}/bin/mimedefang +daemon="${TRUEPREFIX}/bin/mimedefang" daemon_flags="-U _mdefang -p /var/run/mdefang/mimedefang.socket -m /var/run/mdefang/multiplexor.socket" rc_pre() { install -d -o _mdefang -g _mdefang /var/run/mdefang } +rc_reload() { + rc_err "$0: reload is not supported" +} + rc_cmd $1 diff --git a/mail/mimedefang/pkg/mimedefang_multiplexor.rc b/mail/mimedefang/pkg/mimedefang_multiplexor.rc index db22e3f1ee8..4b3821137b8 100755 --- a/mail/mimedefang/pkg/mimedefang_multiplexor.rc +++ b/mail/mimedefang/pkg/mimedefang_multiplexor.rc @@ -1,14 +1,18 @@ #!/bin/sh # -# $OpenBSD: mimedefang_multiplexor.rc,v 1.1 2010/12/07 02:56:19 okan Exp $ +# $OpenBSD: mimedefang_multiplexor.rc,v 1.2 2010/12/09 01:44:15 okan Exp $ . /etc/rc.d/rc.subr -daemon=${TRUEPREFIX}/bin/mimedefang-multiplexor +daemon="${TRUEPREFIX}/bin/mimedefang-multiplexor" daemon_flags="-U _mdefang -l -p /var/run/mdefang/multiplexor.pid -s /var/run/mdefang/multiplexor.socket" rc_pre() { install -d -o _mdefang -g _mdefang /var/run/mdefang } +rc_reload() { + pkill -INT -f "^${pexp}" +} + rc_cmd $1