aboutsummaryrefslogtreecommitdiff
path: root/etc/bootstrap/bbot-bootstrap.service
blob: 8ff2aabf38b26a9a26926965ab1d5435a4e71326 (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
[Unit]
Description=bbot worker bootstrap
After=default.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

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

ExecStart=/usr/local/bin/bbot-bootstrap.sh \
  --cxx ${CXX} \
  --build ${BUILD} \
  --environments ${ENVIRONMENTS}

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

[Install]
WantedBy=default.target