openbsd-ports/net/spectrum/pkg/spectrum.rc
ajacoutot 489200387a Make use of rcexec in rc_start().
ok sebastia@ (maintainer)
2011-03-20 11:20:16 +00:00

20 lines
260 B
Bash

#!/bin/sh
#
# $OpenBSD: spectrum.rc,v 1.3 2011/03/20 11:20:16 ajacoutot Exp $
daemon="${TRUEPREFIX}/sbin/spectrumctl"
. /etc/rc.d/rc.subr
rc_start() {
${rcexec} "${daemon} start"
}
rc_stop() {
${daemon} stop
}
rc_reload() {
${daemon} reload
}
rc_cmd $1