openbsd-ports/devel/py-buildslave/pkg/buildbot_worker.rc
landry 0dd75166eb Update buildslave to 1.2.0.
- upstream renamed the project to buildbot-worker, so rename the package
  and rc script accordingly. Set @conflict for the upgrade path.
- vastly improve the rc script, passing --nodaemon and using rc_bg -
  this way, if the buildbot is not reachable, rcctl will not return a
(failed) status (thx ajacoutot@)
- switch to python3
- enable tests
2018-06-23 21:56:10 +00:00

16 lines
315 B
Bash

#!/bin/ksh
#
# $OpenBSD: buildbot_worker.rc,v 1.1 2018/06/23 21:56:10 landry Exp $
daemon="${TRUEPREFIX}/bin/buildbot-worker start --nodaemon"
daemon_flags="${HOMEDIR}"
daemon_user="_buildslave"
. /etc/rc.d/rc.subr
pexp="${MODPY_BIN} ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=NO
rc_bg=YES
rc_cmd $1