Skip to content

Commit 7c721c2

Browse files
committed
Add OpenBSD tab
1 parent 2402078 commit 7c721c2

File tree

1 file changed

+49
-2
lines changed

1 file changed

+49
-2
lines changed

testing/new-buildbot-worker.rst

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,42 @@ the steps below as appropriate if you choose that path.
238238
sysrc buildbot_worker_myworker_basedir=/var/db/buildbot/workers/WORKERNAME
239239
service buildbot-worker start
240240

241+
.. tab:: OpenBSD
242+
243+
::
244+
245+
pkg_add buildbot-worker
246+
247+
The package creates a ``_buildslave`` system user, installs an
248+
``rc.d`` service, and creates ``/var/buildslave/`` as the default
249+
worker directory.
250+
251+
Create the worker (replace ``WORKERNAME`` and ``WORKERPASSWD`` with
252+
the credentials provided to you from your buildmaster-config issue)::
253+
254+
su -m _buildslave -c "buildbot-worker create-worker \
255+
/var/buildslave \
256+
buildbot-api.python.org:9020 WORKERNAME WORKERPASSWD"
257+
258+
Edit ``info/admin``, ``info/host``, and ``buildbot.tac`` in the worker
259+
directory (see below for recommended settings).
260+
261+
Enable and start the service::
262+
263+
rcctl enable buildbot_worker
264+
rcctl start buildbot_worker
265+
266+
The ``rc.d`` script supports a single worker. To run multiple
267+
workers, create each in a subdirectory and point the service flags
268+
at the desired one (or create additional ``rc.d`` scripts)::
269+
270+
su -m _buildslave -c "buildbot-worker create-worker \
271+
/var/buildslave/WORKERNAME \
272+
buildbot-api.python.org:9020 WORKERNAME WORKERPASSWD"
273+
rcctl enable buildbot_worker
274+
rcctl set buildbot_worker flags /var/buildslave/WORKERNAME
275+
rcctl start buildbot_worker
276+
241277

242278
.. tab:: macOS
243279

@@ -388,8 +424,19 @@ machine reboots:
388424

389425
.. tab:: rc.d
390426

391-
If you installed via a package on FreeBSD (or another BSD), the
392-
service was already enabled in the installation step above.
427+
If you installed via a package on FreeBSD or OpenBSD, the service
428+
was already enabled in the installation step above. To manage it
429+
manually:
430+
431+
On FreeBSD::
432+
433+
service buildbot-worker status
434+
service buildbot-worker restart
435+
436+
On OpenBSD::
437+
438+
rcctl check buildbot_worker
439+
rcctl restart buildbot_worker
393440

394441
If you installed via pip, you will need to write an ``rc.d`` script
395442
or use the cronjob approach described in the Linux tab.

0 commit comments

Comments
 (0)