I’ve read in the docs that I shouldn’t background a start process, as this will cause the supervisor process to start a second copy, but is it possible to run multiple processes from the start command? What is the right way to do this?
You cannot start multiple processes from the
If the process you start itself forks, that is fine provided that the parent process remains active and will terminate all children when it receives a
sigterm message. Failure to do so will leave zombie processes lying around that may cause unexpected and unpredictable behavior. In that case, an off-the-shelf supervisor service is best as it is designed to do exactly that. This process is not recommended.
In the vast majority of cases a background process of that sort is better handled using a
worker container instead. See the documentation on how to configure one.