Frequently Asked Questions
- Q
- My program never starts and supervisor doesn’t indicate any error?
- A
- Make sure the x bit is set on the executable file you’re using inthe command= line of your program section.
- Q
- I am a software author and I want my program to behave differentlywhen it’s running under supervisord. How can I tell ifmy program is running under supervisord?
- A
- Supervisor and its subprocesses share an environment variableSUPERVISOR_ENABLED. When your program is run undersupervisord, it can check for the presence of thisenvironment variable to determine whether it is running as asupervisord subprocess.
- Q
- My command works fine when I invoke it by hand from a shell prompt,but when I use the same command line in a supervisor programcommand= section, the program fails mysteriously. Why?
- A
- This may be due to your process’ dependence on environment variablesettings. See Subprocess Environment.
- Q
- How can I make Supervisor restart a process that’s using “too much”memory automatically?
- A
- The superlance package contains a console script that can beused as a Supervisor event listener named memmon which helpswith this task. It works on Linux and Mac OS X.
当前内容版权归 Supervisor 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Supervisor .