- 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
16 lines
315 B
Bash
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
|