-
-
Save elmariofredo/0a7f3619e205eacd1cba6068d340a021 to your computer and use it in GitHub Desktop.
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
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
[Unit] | |
Description=TeamCity Build Agent | |
After=network.target | |
[Service] | |
Type=forking | |
RemainAfterExit=yes | |
PIDFile=/opt/tc01/logs/buildAgent.pid | |
Environment="JAVA_HOME=/usr/java/latest" | |
ExecStart=/opt/tc01/bin/agent.sh start | |
ExecStop=/opt/tc01/bin/agent.sh stop | |
[Install] | |
WantedBy=multi-user.target |
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
[Unit] | |
Description=TeamCity Server | |
After=network.target | |
[Service] | |
Type=forking | |
PIDFile=$TEAMCITY_HOME/logs/teamcity-server.pid | |
; Make sure the CATALINA_PID env variable is setup in $TEAMCITY_HOME/bin/catalina.sh | |
ExecStart=/usr/bin/sudo -u teamcity $TEAMCITY_HOME/bin/teamcity-server.sh start | |
ExecStop=/usr/bin/sudo -u teamcity $TEAMCITY_HOME/bin/teamcity-server.sh stop | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment