jasper 7704d54680 - update HOMEPAGE
- tweak rcscript: sync rc_stop() with current best practice and trim rc_pre()

ok aja@
2016-10-11 05:51:02 +00:00

27 lines
674 B
Bash

#!/bin/sh
#
# $OpenBSD: jenkins.rc,v 1.8 2016/10/11 05:51:03 jasper Exp $
daemon=$(${LOCALBASE}/bin/javaPathHelper -c jenkins)
daemon_flags="-Djava.io.tmpdir=/var/cache/jenkins -jar ${TRUEPREFIX}/share/jenkins/jenkins.war --httpPort=8000 --httpsPort=-1 --ajp13Port=-1"
daemon_user="_jenkins"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
# Move Jenkins' exploded .war files away from a location
# where daily(8)/weekly(8) may clean them.
# https://issues.jenkins-ci.org/browse/JENKINS-17526
# https://issues.jenkins-ci.org/browse/JENKINS-20858
rc_pre() {
install -d -o _jenkins /var/cache/jenkins
}
rc_stop() {
pkill -9 -T "${daemon_rtable}" -xf "${pexp}"
}
rc_cmd $1