aboutsummaryrefslogtreecommitdiff
path: root/bbot/bbot-agent@.service
blob: 57e78d522ecd1975b70f952802e81f37c830c137 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[Unit]
Description=bbot agent for %I
After=multi-user.target

[Service]
Type=simple

Environment=VERBOSE=3

Environment=AUTH_KEY=

Environment=CPU=1
Environment=RAM=1048576

Environment=BOOTSTRAP_TIMEOUT=1200
Environment=BOOTSTRAP_RETRIES=2

Environment=BUILD_TIMEOUT=1800
Environment=BUILD_RETRIES=2

Environment=CONNECT_TIMEOUT=60
Environment=REQUEST_TIMEOUT=300
Environment=REQUEST_RETRIES=4

Environment=TOOLCHAIN_NAME=%i
Environment=TOOLCHAIN_NUM=1
Environment=TOOLCHAIN_VER=
Environment=TOOLCHAIN_ID=

Environment="CONTROLLER_URL="
Environment="CONTROLLER_TRUST="

ExecStart=/build/bots/%i/bin/bbot-agent --systemd-daemon \
  --verbose ${VERBOSE} \
  --auth-key ${AUTH_KEY} \
  --cpu ${CPU} \
  --ram ${RAM} \
  --bootstrap-timeout ${BOOTSTRAP_TIMEOUT} \
  --bootstrap-retries ${BOOTSTRAP_RETRIES} \
  --build-timeout ${BUILD_TIMEOUT} \
  --build-retries ${BUILD_RETRIES} \
  --connect-timeout ${CONNECT_TIMEOUT} \
  --request-timeout ${REQUEST_TIMEOUT} \
  --request-retries ${REQUEST_RETRIES} \
  --toolchain-name ${TOOLCHAIN_NAME} \
  --toolchain-num ${TOOLCHAIN_NUM} \
  --toolchain-ver ${TOOLCHAIN_VER} \
  --toolchain-id ${TOOLCHAIN_ID} \
  $CONTROLLER_TRUST \
  $CONTROLLER_URL

User=build
Group=build
WorkingDirectory=~

[Install]
WantedBy=multi-user.target