[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

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=multi-user.target