-
Notifications
You must be signed in to change notification settings - Fork 27
Restart Modes
The exact technique on how to restart a process isn't universal. Procodile provides a number of modes which can be set on a per-process basis which perform in different ways. This page provides information about the different modes that are available.
To set the restart mode for a process, check the configuration.
This is the default and the most safe restart mode. It stop the current instance, wait until it is no longer running and then start a new instance of the process in its place.
This should be used when it is unsafe to run a process multiple times at the same time. For example a process that listens on a TCP port or a cron-service where running the same commands at the same time would be undesirable.
## start-term
This will start a new instance and then stop the old instance. It is likely that the two processes will be running at the same time when using this. The old instance will continue to appear in the status until it is no longer running.
These are the most simple methods and require that the process itself handles everything required to restart itself. These are most used for web servers or other services that listen for connections and need to remain open during the restart.
It is important that if the process re-spawns itself with a different PID, this new PID is added to the PID file. See PID files for more information.