diff options
-rw-r--r-- | bbot/bbot-agent@.service | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bbot/bbot-agent@.service b/bbot/bbot-agent@.service index 43b9e8c..58f22a5 100644 --- a/bbot/bbot-agent@.service +++ b/bbot/bbot-agent@.service @@ -28,7 +28,7 @@ Environment=CONNECT_TIMEOUT=60 Environment=REQUEST_TIMEOUT=300 Environment=REQUEST_RETRIES=4 -Environment=TOOLCHAIN_NAME=%i +Environment=TOOLCHAIN_NAME=default Environment=TOOLCHAIN_NUM=1 Environment=TOOLCHAIN_VER= Environment=TOOLCHAIN_ID= @@ -36,7 +36,9 @@ Environment=TOOLCHAIN_ID= Environment="CONTROLLER_URL=" Environment="CONTROLLER_TRUST=" -ExecStart=/build/bots/%i/bin/bbot-agent \ +# Note that we cannot use ${TOOLCHAIN_NAME} in the first word of ExecStart. +# +ExecStart=/build/bots/default/bin/bbot-agent \ --systemd-daemon \ --verbose ${VERBOSE} \ --auth-key ${AUTH_KEY} \ @@ -53,7 +55,7 @@ ExecStart=/build/bots/%i/bin/bbot-agent \ --toolchain-num ${TOOLCHAIN_NUM} \ --toolchain-ver ${TOOLCHAIN_VER} \ --toolchain-id ${TOOLCHAIN_ID} \ - --instance 1 \ + --instance %i \ $CONTROLLER_TRUST \ $CONTROLLER_URL |