How Linux System Supervisor manages processes

  
                

Linux users are no strangers to Supervisor Supervisor. We can manage all file files, directories and files on the computer through Supervisor. Today, we will introduce you to a Supervisor process management.

function

advantage

configuration is simple

Management accurate

Process Group Management

RPC extension

API Support

FastCGI Process Management

Event Support (eg Timed Tasks)

Disadvantages

Managed Process Must Run in Front < Br>

Exiting will cause the supervised process to also exit

Configuration

[unix_http_server]

file=/var/run/supervisor.sock

chmod=0700

[supervisord]

logfile=/var/log/supervisor/supervisord.log

pidfile=/var/run/supervisord.pid< Br>

childlogdir=/var/log/supervisor

[rpcinterface:supervisor]

supervisor.rpcinterface_factory = Supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]

serverurl=unix:///var/run/supervisor.sock

[program:cow]

command=/web/root/bin/cow -rc=" /web/root/etc/cow.conf"

Autostart=true

autorestart=true

redirect_stderr=true

stderr_logfile=NONE

[include]

files = /etc/Supervisor/conf.d/*.conf

Operation

supervisorctl status View Process Status

Supervisorctl reload Restart supervisord

Supervisorctl start

Copyright © Windows knowledge All Rights Reserved