diff --git a/README.md b/README.md index 3cb01c8..ed45f7b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..964d47d --- /dev/null +++ b/install.sh @@ -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 +