From 1d47bbf279e4d4c3fe82f9bb59b8b887f6b7549f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Dec 2018 16:47:35 -0500 Subject: [PATCH] Add extra runtime args to builds.sr.ht service --- sr.ht/builds.sr.ht/builds.sr.ht-worker.initd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd b/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd index 89f5f81..a56fe9c 100644 --- a/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd +++ b/sr.ht/builds.sr.ht/builds.sr.ht-worker.initd @@ -2,6 +2,10 @@ name="srht-worker" description="builds.sr.ht build worker" +# Override these with /etc/conf.d/builds.sr.ht-worker +# A common parameter might be EXTRA_ARGS=-workers [n] where n != nproc +EXTRA_ARGS=${EXTRA_ARGS:-} + depend() { need net } @@ -9,7 +13,7 @@ depend() { start() { ebegin "Starting $name" start-stop-daemon --background --make-pidfile --pidfile /run/$name.pid -u builds \ - --exec /usr/bin/builds.sr.ht-worker + --exec /usr/bin/builds.sr.ht-worker $EXTRA_ARGS eend $? } -- 2.45.2