Last active
December 4, 2024 09:49
-
-
Save maxd/fd20885839d02b52d603 to your computer and use it in GitHub Desktop.
Startup script for TeamCity (put it to /etc/init.d/teamcity)
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/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 |
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: