aboutsummaryrefslogtreecommitdiff
path: root/bbot/bbot-agent@.service
blob: 5f160cfc6f2738ecde45dc8601866f8a2cc9db28 (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
[Unit]
Description=bbot agent for %I
After=default.target

[Service]
Type=simple

Environment=VERBOSE=1

Environment=CPU=1
Environment=RAM=1048576

Environment=BOOTSTRAP_TIMEOUT=600
Environment=BUILD_TIMEOUT=1800
Environment=REQUEST_TIMEOUT=300

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

Environment="CONTROLLER_URL=https://example.org/?build-task"

ExecStart=/build/bbot/%i/bin/bbot-agent --systemd-daemon \
  --verbose ${VERBOSE} \
  --cpu ${CPU} \
  --ram ${RAM} \
  --bootstrap-timeout ${BOOTSTRAP_TIMEOUT} \
  --build-timeout ${BUILD_TIMEOUT} \
  --request-timeout ${REQUEST_TIMEOUT} \
  --toolchain-name ${TOOLCHAIN_NAME} \
  --toolchain-num ${TOOLCHAIN_NUM} \
  --toolchain-id ${TOOLCHAIN_ID} \
  $CONTROLLER_URL

User=build
Group=build
WorkingDirectory=~

[Install]
WantedBy=default.target