diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 16:30:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-21 16:30:36 +0200 |
commit | 04318680fb6c36aca0ec8029d94dab0e960ac69a (patch) | |
tree | 1d8d15b7e98c3f23458cbde77e0d9522f33a21f3 /etc/bootstrap/bbot-bootstrap.service | |
parent | aa7d4c3e66db326be2281ff9c21e8510565ae707 (diff) |
Add machine test, bootstrap/environment scripts
Diffstat (limited to 'etc/bootstrap/bbot-bootstrap.service')
-rw-r--r-- | etc/bootstrap/bbot-bootstrap.service | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/etc/bootstrap/bbot-bootstrap.service b/etc/bootstrap/bbot-bootstrap.service new file mode 100644 index 0000000..ecb0da4 --- /dev/null +++ b/etc/bootstrap/bbot-bootstrap.service @@ -0,0 +1,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=ENVIRONMENT=/home/build/environment + +ExecStart=/usr/local/bin/bbot-bootstrap.sh \ + --cxx ${CXX} \ + --build ${BUILD} \ + --environment ${ENVIRONMENT} + +StandardInput=tty-force +StandardOutput=inherit +StandardError=inherit +TTYPath=/dev/tty1 +TTYReset=yes +TTYVHangup=yes + +[Install] +WantedBy=default.target |