aboutsummaryrefslogtreecommitdiff
path: root/bbot/bbot-agent@.service
blob: af760b3df0c7cd4494d5f7529bd418c2f787f2cd (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
[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=TOOLCHAIN_ID=123abc
Environment=TOOLCHAIN_NUM=1

ExecStart=/build/bbot/%i/bin/bbot-agent --systemd-daemon \
  --verbose ${VERBOSE} \
  --cpu ${CPU} \
  --ram ${RAM} \
  --bootstrap-timeout ${BOOTSTRAP_TIMEOUT} \
  --build-timeout ${BUILD_TIMEOUT} \
  %i \
  ${TOOLCHAIN_NUM} \
  ${TOOLCHAIN_ID}

User=build
Group=build
WorkingDirectory=~

[Install]
WantedBy=default.target