You can start the processes in your application with either the Exec section or the Start section of the deployment manifest, but not both. Which one should you use?
Version and installation information
Product: Pipelines for Applications
Choose Exec or Start based on what kind of processes your application is starting.
|The Exec section||The Start section|
|Type of application||Foreground, short lived||Background, long lived|
|Monitored by the Pipelines agent?||Yes||No|
|Will it be restarted if stopped?||Yes||No|
Starting short lived, foreground processes
Use the Exec section for short lived, foreground processes, such as a Node.js application. A process started by this section is monitored by the Pipelines agent, and when it is terminated by anything other than the Pipelines agent, it is restarted by the agent.
When the Exec section is used to start a background process, the process is forked in the background, the Pipelines agent cannot monitor it, and deployment fails.
Starting long lived, background processes
The Start section is for long lived, background processes, such as an apache application. A process started by this section is not monitored by the Pipelines agent, and when it is terminated by anything other than the Pipelines agent, it is not restarted.