Created
November 11, 2015 09:33
-
-
Save poul-kg/a34b58d077828901df86 to your computer and use it in GitHub Desktop.
TeamCity startup script for Ubuntu 14.04 on AWS
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 | |
# This will start TeamCity & Default build agent on system startup as ubuntu user | |
# To run it on every system startup, execute: | |
# sudo update-rc.d teamcity defaults | |
case "$1" in | |
start) | |
echo "Starting TeamCity" | |
start-stop-daemon --start --chuid ubuntu:ubuntu --quiet --exec /home/ubuntu/distr/TeamCity/bin/runAll.sh start > /dev/null | |
;; | |
stop) | |
echo "Stopping TeamCity" | |
/home/ubuntu/distr/TeamCity/bin/runAll.sh stop > /dev/null | |
;; | |
*) | |
echo "Usage: /etc/init.d/teamcity {start|stop}" | |
exit 1 | |
;; | |
esac | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment