Skip to content

Instantly share code, notes, and snippets.

@unquietwiki
Created April 22, 2024 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unquietwiki/f63b124c7c7d96748513b9686949e364 to your computer and use it in GitHub Desktop.
Save unquietwiki/f63b124c7c7d96748513b9686949e364 to your computer and use it in GitHub Desktop.
Systemd service for TeamCity server
[Unit]
Description=TeamCity Server
After=network.target
[Service]
Type=forking
User=teamcity
Group=teamcity
WorkingDirectory=/opt/TeamCity
ExecStart=/opt/TeamCity/bin/startup.sh
ExecStop=/opt/TeamCity/bin/shutdown.sh
RestartSec=10
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment