Supervisor Installation on MacOS
In a previous article, we saw an introduction to what Supervisor, the process manager for UNIX systems is, where we basically explained what it was and how to configure a process in it. Today we will see how to install supervisor on the MacOS operating system.
Installation
To install supervisor on MacOS with Homebrew you can use the following command:
brew install supervisor
Configuration
After installing supervisor, you can configure this program to start every time the system boots with the following command:
brew services start supervisor
The main configuration file for supervisor will usually be located in /usr/local/etc/supervisord.ini
. In this file you will find a line like the following:
[include]
files = /usr/local/etc/supervisor.d/*.ini
Which indicates that to create a new process, we must create a file in the directory /usr/local/etc/supervisor.d
with the extension .ini.
Once supervisor is installed, you must start the daemon that will manage all processes.
supervisord -c supervisord.conf
To configure your first process in supervisor, I invite you to follow the following tutorial.
Configuring a process in supervisor