add an appropriate rc_reload()

proded by and ok ajacoutot@
This commit is contained in:
okan 2010-12-09 01:44:15 +00:00
parent cf48c67e66
commit fb664f768a
3 changed files with 14 additions and 5 deletions

View File

@ -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/

View File

@ -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

View File

@ -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