Skip to content

Instantly share code, notes, and snippets.

@maxd
Last active November 11, 2021 16:28
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save maxd/fd20885839d02b52d603 to your computer and use it in GitHub Desktop.
Save maxd/fd20885839d02b52d603 to your computer and use it in GitHub Desktop.
Startup script for TeamCity (put it to /etc/init.d/teamcity)
#!/bin/sh
# /etc/init.d/teamcity - Startup script for TeamCity
#
#
# Register the startup script to run automatically:
#
# sudo update-rc.d teamcity defaults
#
export TEAMCITY_HOME=/opt/TeamCity
export TEAMCITY_DATA_PATH=/var/lib/TeamCity
case $1 in
start)
start-stop-daemon --start --exec $TEAMCITY_HOME/bin/teamcity-server.sh start
;;
stop)
start-stop-daemon --start --exec $TEAMCITY_HOME/bin/teamcity-server.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 teamcity defaults

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