aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/bbot-agent@.service11
1 files changed, 9 insertions, 2 deletions
diff --git a/bbot/bbot-agent@.service b/bbot/bbot-agent@.service
index 57e78d5..522fc3f 100644
--- a/bbot/bbot-agent@.service
+++ b/bbot/bbot-agent@.service
@@ -1,5 +1,11 @@
+# Notes:
+#
+# The template parameter is the instance number. Use `%I` in Description or
+# similar and %i everywhere else (`%I` is rewritten by Build OS monitor to
+# include the toolchain name, for example, `stage/%I`).
+#
[Unit]
-Description=bbot agent for %I
+Description=bbot agent instance %I
After=multi-user.target
[Service]
@@ -30,7 +36,8 @@ Environment=TOOLCHAIN_ID=
Environment="CONTROLLER_URL="
Environment="CONTROLLER_TRUST="
-ExecStart=/build/bots/%i/bin/bbot-agent --systemd-daemon \
+ExecStart=/build/bots/${TOOLCHAIN_NAME}/bin/bbot-agent \
+ --systemd-daemon \
--verbose ${VERBOSE} \
--auth-key ${AUTH_KEY} \
--cpu ${CPU} \