This module provides high-level tools for managing long-running processes using supervisor.
See also
Require a supervisor process to be running.
Keyword arguments will be used to build the program configuration file. Some useful arguments are:
You should refer to the supervisor documentation for the complete list of allowed arguments.
Note
the default values for the following arguments differs from the supervisor defaults:
Example:
from fabtools import require
require.supervisor.process('myapp',
command='/path/to/venv/bin/myapp --config production.ini --someflag',
directory='/path/to/working/dir',
user='alice',
stdout_logfile='/path/to/logs/myapp.log',
)