...
- the user must be able to run the
shutdown
command (for the agent machine reboot functionality and the machine shutdown functionality when running in a cloud environment) - when using systemd, it shoul dnot should not kill the processes on the main proces process exit (use RemainAfterExit=yes)
...
To run agent automatically on the machine boot under Linux, configure daemon process with the agent.sh start
command to start it and agent.sh stop
command to stop it.
For systemd, check see the example confiuration configuration file:
Expand | ||
---|---|---|
| ||
[Unit] [Service] User=teamcityagent # Support agent upgrade as the main process starts a child and exits then [Install] |
For init.d, refer to an example procedure:
...