Skip to content

Instantly share code, notes, and snippets.

@hneiva
Created April 19, 2017 16:32
Show Gist options
  • Save hneiva/8420c36754f1efa55d27e8b3b3c768cc to your computer and use it in GitHub Desktop.
Save hneiva/8420c36754f1efa55d27e8b3b3c768cc to your computer and use it in GitHub Desktop.
Teamcity Server Systemd Definition
[Unit]
Description=TeamCity Server
After=network.target
[Service]
Type=forking
PIDFile=/opt/teamcity/logs/teamcity.pid
; Make sure the CATALINA_PID env variable is setup in $TEAMCITY_HOME/bin/catalina.sh
User=teamcity
ExecStart=/opt/teamcity/bin/teamcity-server.sh start
ExecStop=/opt/teamcity/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