Skip to content

Instantly share code, notes, and snippets.

@maxd
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxd/1221ca981124823ce541 to your computer and use it in GitHub Desktop.
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)
#!/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
@maxd
Copy link
Author

maxd commented Nov 9, 2014

Register the startup script to run automatically:

sudo update-rc.d buildagent defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment