Linux Talk #3: Supervisor Process Control | Supervisord Install & Usage | 2019 Ubuntu 19.10

preview_player
Показать описание
Supervisor Process Control on Linux - Install & Usage. We'll be talking about Supervisor installing Supervisord and using Supervisorctl. We'll install Supervisor using terminal on Ubuntu 19.10. This is a 2019 Linux Talk on a Program for Process Control and is intended for UNIX based systems such as Linux. Supervisor is a client/server program that allows you to control and manage processes on most UNIX based systems. With that being said it can run on systems such as Solaris, FreeBSD, Linux, and MacOS.

My Linux Cheat Sheet and 25 Page Checklist here:

Share this free tool and support Small YouTubers
(I made this tool to help creators)

From the vid
[program:savvyprogram]
command=/home/savvynik/Desktop/SavvyProgram
autostart=true
autorestart=true

Linux Talk :

Review and Walkthroughs:

Install Tutorials:

Live Episodes:

What’s the difference?

Useful Links:
Рекомендации по теме
Комментарии
Автор

Great video! I was looking for some kind of video for a long time. Thanks a lot!

AlexanderWaal
Автор

thanks a lot! straight to the point! awesome!

melbatistaonline
Автор

Thanks for sharing this tutorial. Super easy and poweful!

lucascamino
Автор

awesome video, it would have been great to talk about more cases in which using supervisor is a good idea. Thank you for explaining this!

danteanditzel
Автор

Thanks... your explanations are very good

AnantaAkash.Podder
Автор

Congrats on that 200 as everyone else stated.

VenomousPictures
Автор

you wrote SavvyProgram file without the .cpp extenstion. Is that ok? Can you, please, comment? On the other hand I'm thankful for the video too!

myroslavmail
Автор

I get this error when running "supervisorctl reread":

"error: <class 'FileNotFoundError'>, [Errno 2] No such file or directory: file: line: 560"

rakeshmali
Автор

How did you end the Config I couldnt quite understand what you said

natemillner
Автор

how to add hook, means if any worker for example say process id 123 stops I want to fire another command

nutandevjoshi
Автор

I am using arch linux, and i have installed supervisor.
My path is : /etc/supervisor.d & /etc/supervisor.conf.
and i have create config file to my laravel queue at /etc/supervisor.d/queue.conf. And include my conf in supervisor.conf.
Meanwhile i don't have file=/var/supervisor.sock
But when i run supervisorctl rread i got this error:
- Error: could not read config file /etc/supervisord.conf
Need help, please :)

wayaputraragil
Автор

hey! when i run the supervisorctl reread command, "No config updates to processes" pops up. what do i do?

vaishnavia
Автор

How we can activate virtual environment and run any program using super visor ?

MdRashid-xkho
Автор

What is the best CI/CD practice for supervisord setup?

deepg
Автор

Why run with root ... i need root with user

note
Автор

what was your python default version while making this video? My default version of python is 3.7.5.
After supervisorctl reread comand. This was the error.
ile "/usr/bin/supervisorctl", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3101, in
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, in require
needed =
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
The 'supervisor==3.3.1' distribution was not found and is required by the application
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'

Original exception was:
Traceback (most recent call last):
File "/usr/bin/supervisorctl", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3088, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3072, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3101, in
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, in require
needed =
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 778, in resolve
raise DistributionNotFound(req, requirers)
The 'supervisor==3.3.1' distribution was not found and is required by the application
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228


Later i changed /usr/bin/supervisord file and /user/bin/supervisorctl top line fro #!/usr/bin/python to #!/usr/bin/python2 .
Then new error after supervisorctl reread was error: <class 'socket.error'>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228.

I'm stuck please help me out.

monildand
Автор

have you tried with stunnel? it didn't work for me. Got FATAL errors

JizukEmuna
Автор

how do i run a command: cd home/ bundle ex ./example/demo

minhsang
Автор

1 person disliked cuz tried to use Vim and ragequit.

IMADETHISACCFORRAY