aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap.service
blob: 5d6c0239571ef0dc9a4518b864b06bf62d5b4fac (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
[Unit]
Description=bbot worker bootstrap
After=multi-user.target
Conflicts=getty@tty1.service

[Service]
Type=idle
# Old versions of systemd have no 'infinity'.
TimeoutStartSec=6000min
RemainAfterExit=true
User=build
Group=build
# Old versions of systemd have no '~'.
WorkingDirectory=/home/build

# Uncomment this if there is an X server running (e.g., Xvfb).
#
#Environment=DISPLAY=:99

Environment=CXX=g++
Environment=INSTALL=/usr/local
Environment=BUILD=/tmp
Environment=ENVIRONMENTS=/home/build/environments

# Note: bootstrap script options must come before build.sh options/arguments.
#
ExecStart=/usr/local/bin/bbot-bootstrap-linux.sh \
--install ${INSTALL} \
--build ${BUILD} \
--environments ${ENVIRONMENTS} \
--private \
--sudo sudo \
${CXX}

StandardInput=tty-force
StandardOutput=inherit
StandardError=inherit
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes

[Install]
WantedBy=multi-user.target