Skip to content

Instantly share code, notes, and snippets.

@arashi01
Created July 10, 2014 01:50
Show Gist options
  • Save arashi01/1d0ca9809ef3fc0dca3b to your computer and use it in GitHub Desktop.
Save arashi01/1d0ca9809ef3fc0dca3b to your computer and use it in GitHub Desktop.
teamcity-agent as systemd service
[Service]
Type=oneshot
RemainAfterExit=true
User=teamcity
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