Last active
August 29, 2015 14:09
-
-
Save maxd/1221ca981124823ce541 to your computer and use it in GitHub Desktop.
Startup script for TeamCity Build Agent (put it to /etc/init.d/buildagent)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc/init.d/buildagent - Startup script for TeamCity Build Agent | |
# | |
# | |
# Register the startup script to run automatically: | |
# | |
# sudo update-rc.d buildagent defaults | |
# | |
export TEAMCITY_HOME=/opt/TeamCityBuildAgent | |
case $1 in | |
start) | |
$TEAMCITY_HOME/bin/agent.sh start | |
;; | |
stop) | |
$TEAMCITY_HOME/bin/agent.sh stop | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Register the startup script to run automatically: