Installation of Supervisor on Arch Linux.

Author
By Darío Rivera
Posted On in Arch Linux

In a previous article we saw an introduction to what Supervisor, the process manager for UNIX systems is, where we essentially explained what it was and how to configure a process in it. Today we will see how to install supervisor on the Arch Linux operating system.

Installation

To install supervisor on Arch Linux you can use pacman.

sudo pacman -S supervisor

Configuration

After installing supervisor you must start the daemon that will manage all processes:

sudo supervisord -c /etc/supervisord.conf

The -c parameter indicates the main supervisor configuration file, which will usually be in /etc/supervisord.conf. In this file you will find a line like the following:

[include]
files = /etc/supervisor.d/*.ini

Which indicates that to create a new process we must create a file in the directory /etc/supervisor.d with the extension .ini.

Before creating the first process, we must make sure that supervisor is working properly. For this, you can check the status of the process with systemctl.

sudo systemctl status supervisord

You will get an output like the following if everything went well.

● supervisord.service - Process Monitoring and Control Daemon
     Loaded: loaded (/usr/lib/systemd/system/supervisord.service; disabled; vendor preset: disabled)
     Active: active (running) since Fri 2021-02-19 09:57:28 -05; 11s ago
       Docs: http://supervisord.org
    Process: 12564 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=0/SUCCESS)
   Main PID: 12565 (supervisord)
      Tasks: 1 (limit: 9337)
     Memory: 17.1M
     CGroup: /system.slice/supervisord.service
             └─12565 /usr/bin/python /usr/bin/supervisord -c /etc/supervisord.conf

Feb 19 09:57:27 arch-linux systemd[1]: Starting Process Monitoring and Control Daemon...
Feb 19 09:57:28 arch-linux systemd[1]: Started Process Monitoring and Control Daemon.

If the process is stopped, you can also start it with systemctl.

sudo systemctl start supervisord

To configure your first process in supervisor, I invite you to follow the following tutorial.

Configuration of a process in supervisor


Acerca de Darío Rivera

Author

Application Architect at Elentra Corp . Quality developer and passionate learner with 10+ years of experience in web technologies. Creator of EasyHttp , an standard way to consume HTTP Clients.

LinkedIn Twitter Instagram

Sólo aquellos que han alcanzado el éxito saben que siempre estuvo a un paso del momento en que pensaron renunciar.