added install script

This commit is contained in:
web 2020-12-22 12:00:45 +00:00
parent ddab3fd0a0
commit 8da7f4d9e2
2 changed files with 20 additions and 0 deletions

View File

@ -1,2 +1,8 @@
# buildServer
buildBot server of quasarapp
## using
* start.sh - run build bot.
* stop.sh - stoped buildbot
* install.sh - isntall service for systemd.

14
install.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
service=/etc/systemd/system/buildbot.service
ROOT=BASE_DIR=$(dirname "$(readlink -f "$0")")
echo "[Unit]" >> $service
echo "Description=BuildBot" >> $service
echo "[Service]" >> $service
echo "ExecStart=$ROOT/start.sh" >> $service
echo "Type=forking" >> $service
echo "PIDFile=$ROOT/twistd.pid" >> $service
echo "[Install]" >> $service
echo "WantedBy=multi-user.target" >> $service