Restart the supervisor service and view, start, stop and restart the supervisor process

overview

1. Restart the supervisor service

Premise: Monitor and alarm and find that the supervisor service is down or check the service and find that the supervisor service is down

Execute the sudo supervisorctl command, and after entering the password, it is found that the execution fails, indicating that the supervisor service is down


Solution:
1. First find the directory where the supervisor is installed, the command is

whereis supervisor1

2. Find the corresponding supervisor configuration file path, see screenshot
3. Start the supervisor service, the command is

sudo supervisord -c /etc/supervisor/supervisord.conf1

4. To check whether the supervisor service is running normally, the command is

sudo supervisorctl1

If it still doesn’t work, repeat steps 3 and 4.
To close the supervisor, execute the command

sudo supervisorctl shutdown1

see screenshot


To restart the supervisor, execute the command

sudo supervisorctl reload1

See the screenshot (the premise of restarting is that the supervisor is already starting)

Two, view, start, stop, restart supervisor process

1. After updating the configuration, the update command must be executed to take effect

sudo supervisorctl update1

2. View the supervisor process

sudo supervisorctl status1

3. Start a supervisor process

sudo supervisorctl start xxxx1

4. Stop a supervisor process

sudo supervisorctl stop xxxx1

5. Stop all supervisor processes

sudo supervisorctl stop all1

6. Restart a supervisor process

sudo supervisorctl restart xxxx

Guess you like

Origin blog.csdn.net/qq_41221596/article/details/128290269