From c2b740d4560d8dc3f75cba65bae2ba93ea8e177c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Jan 2019 11:15:36 +0200 Subject: Update systemd .service file in preparation for multi-instance support --- bbot/bbot-agent@.service | 11 +++++++++-- 1 file 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} \ -- cgit v1.1