rcexec should only really be used in rc_start, unless there's a good reason to

use it elsewhere

prompted by aja@
ok aja@ sthen@
This commit is contained in:
jasper 2014-10-03 11:53:23 +00:00
parent d44fd0cede
commit fe9d5c0b95
6 changed files with 14 additions and 12 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2014/10/03 11:33:53 jasper Exp $
# $OpenBSD: Makefile,v 1.3 2014/10/03 11:53:23 jasper Exp $
SHARED_ONLY= Yes
@ -9,6 +9,7 @@ GH_ACCOUNT= blblack
GH_PROJECT= gdnsd
GH_TAGNAME= v1.11.5
GH_COMMENT= 094e7afac546693856aba0364c3dcf6e7511a0e8
REVISION= 0
DISTNAME= ${GH_PROJECT}-${GH_TAGNAME:S/v//g}
CATEGORIES= net

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: gdnsd.rc,v 1.1.1.1 2014/10/03 11:31:27 jasper Exp $
# $OpenBSD: gdnsd.rc,v 1.2 2014/10/03 11:53:23 jasper Exp $
daemon="${PREFIX}/sbin/gdnsd"
@ -11,15 +11,15 @@ rc_start() {
}
rc_reload() {
${rcexec} "${daemon} reload"
${daemon} reload
}
rc_restart() {
${rcexec} "${daemon} restart"
${daemon} restart
}
rc_stop() {
${rcexec} "${daemon} stop"
${daemon} stop
}
rc_cmd $1

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2014/09/02 10:14:32 espie Exp $
# $OpenBSD: Makefile,v 1.3 2014/10/03 11:53:23 jasper Exp $
COMMENT= Ubiquiti mfi wireless controller
@ -6,7 +6,7 @@ DISTFILES= mFi-$V{mFi.unix}.zip
V= 2.0.24
FW_VER= 2.0.24.1227
PKGNAME= mfi-$V
REVISION= 0
REVISION= 1
CATEGORIES= net

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: mfi.rc,v 1.1.1.1 2014/08/14 07:00:25 jasper Exp $
# $OpenBSD: mfi.rc,v 1.2 2014/10/03 11:53:23 jasper Exp $
daemon="${TRUEPREFIX}/share/mfi/lib/ace.jar"
daemon_user="_mfi"
@ -17,7 +17,7 @@ rc_start() {
}
rc_stop() {
${rcexec} "${java} -jar ${daemon} stop"
${java} -jar ${daemon} stop
}
rc_cmd $1

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2014/09/22 13:04:00 sthen Exp $
# $OpenBSD: Makefile,v 1.9 2014/10/03 11:53:23 jasper Exp $
COMMENT= Ubiquiti uniFi wireless controller
@ -6,6 +6,7 @@ DISTFILES= unifi-$V{UniFi.unix}.zip
V= 3.2.5
FW_VER= 3.2.5.2791
PKGNAME= unifi-$V
REVISION= 0
CATEGORIES= net

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $OpenBSD: unifi.rc,v 1.2 2014/04/18 22:01:23 sthen Exp $
# $OpenBSD: unifi.rc,v 1.3 2014/10/03 11:53:23 jasper Exp $
daemon="${TRUEPREFIX}/share/unifi/lib/ace.jar"
daemon_user="_unifi"
@ -17,7 +17,7 @@ rc_start() {
}
rc_stop() {
${rcexec} "${java} -jar ${daemon} stop"
${java} -jar ${daemon} stop
}
rc_cmd $1