Skip to content

Instantly share code, notes, and snippets.

View alst74's full-sized avatar

Alexander Ståhlberg alst74

  • Sandviken/Sweden
View GitHub Profile
@alst74
alst74 / teamcity-agent.service
Created September 11, 2017 09:07 — forked from BenWhitehead/teamcity-agent.service
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
PIDFile=$AGENT_HOME/logs/buildAgent.pid
ExecStart=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh start
ExecStop=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh stop