openbsd-ports/mail/courier-authlib/pkg/courier_authdaemond.rc
ajacoutot 15cb0bcccf Make use of rcexec in rc_start().
ok giovanni@ (maintainer)
2011-03-20 13:06:23 +00:00

21 lines
356 B
Bash

#!/bin/sh
#
# $OpenBSD: courier_authdaemond.rc,v 1.5 2011/03/20 13:06:23 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/authdaemond"
. /etc/rc.d/rc.subr
pexp=".*courierlogger.*-start ${TRUEPREFIX}/libexec/courier-authlib/authdaemond"
rc_start() {
mkdir -p /var/run/courier{,-auth}/
${rcexec} "${daemon} start"
}
rc_stop() {
${daemon} stop
}
rc_cmd $1