Created
July 20, 2023 13:21
-
-
Save Vortexdude/1472064e3e7b6599ab41da01a0314c5e to your computer and use it in GitHub Desktop.
test.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Unit] | |
| Description=Azure DevOps Agent | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=<user> | |
| WorkingDirectory=/home/<user>/<agent_folder> | |
| ExecStart=/home/<user>/<agent_folder>/run.sh | |
| ExecStop=/home/<user>/<agent_folder>/bin/Agent.Listener remove --unattended | |
| Restart=always | |
| RestartSec=30 | |
| [Install] | |
| WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment