Skip to content

Instantly share code, notes, and snippets.

@fatso83
Created September 2, 2020 11:41
Show Gist options
  • Save fatso83/56db9326c30ffabecf6c3d77dc58bda1 to your computer and use it in GitHub Desktop.
Save fatso83/56db9326c30ffabecf6c3d77dc58bda1 to your computer and use it in GitHub Desktop.
[Unit]
Description=Teamcity agent full
[Service]
Type=simple
User=carlerik
Environment=JAVA_HOME=/home/carlerik/.sdkman/candidates/java/12.0.0-open
ExecStart=/home/carlerik/apps/teamCityBuildAgentFull/bin/agent.sh run
ExecStop=/home/carlerik/apps/teamCityBuildAgentFull/bin/agent.sh stop
[Install]
WantedBy=multi-user.target
@fatso83
Copy link
Author

fatso83 commented Sep 2, 2020

Put in /etc/systemd/system/teamcity-agent.service

Install sudo systemctl enable teamcity-agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment