openbsd-ports/mail/mimedefang/pkg/mimedefang_multiplexor.rc
ajacoutot 4ec44530ca Simplify after recent rc.subr change.
The framework is now stable and we will start documenting it (at last).
2010-12-27 14:50:22 +00:00

19 lines
390 B
Bash
Executable File

#!/bin/sh
#
# $OpenBSD: mimedefang_multiplexor.rc,v 1.4 2010/12/27 14:50:23 ajacoutot Exp $
daemon="${TRUEPREFIX}/bin/mimedefang-multiplexor"
daemon_flags="-U _mdefang -l -p /var/run/mdefang/multiplexor.pid -s /var/run/mdefang/multiplexor.socket"
. /etc/rc.d/rc.subr
rc_pre() {
install -d -o _mdefang -g _mdefang /var/run/mdefang
}
rc_reload() {
pkill -INT -f "^${pexp}"
}
rc_cmd $1