Skip to content

Instantly share code, notes, and snippets.

@arashi01
Created May 21, 2014 16:06
Show Gist options
  • Save arashi01/47587729ef3603665871 to your computer and use it in GitHub Desktop.
Save arashi01/47587729ef3603665871 to your computer and use it in GitHub Desktop.
Teamcity agent Systemd unit file
[Unit]
Description=TeamCity Build Agent
[Service]
Type=forking
User=teamcity
PIDFile=/opt/teamcity/logs/buildAgent.pid
ExecStart=/opt/teamcity/bin/agent.sh start
ExecStop=-/opt/teamcity/bin/agent.sh stop force
SuccessExitStatus=0 143
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment