Configuring Supervisor for UnoPim

Updated 20 September 2024

When managing processes for your Unopim project, Supervisor can be a key tool to ensure everything runs smoothly and efficiently. Here’s a guide on how to Configuring Supervisor for Unopim.

The supervisor is the most commonly used and recommended process control for UnoPim.

How to setup?

Install supervisor by running the commands after that follow the below points.

apt update
apt install supervisor

1. Location of Configuration Files

Supervisor configuration files are typically found in the /etc/supervisor/conf.d directory. You’ll create a new configuration file here to specify how Supervisor should manage your Unopim processes.

2. Creating the Configuration File

Let’s say you want to manage a process for handling tasks in Unopim. You would create a configuration file, for instance, named unopim-worker.conf, in the /etc/supervisor/conf.d directory. Here’s an example configuration:

[program:unopim-worker]
command=/usr/bin/php /home/users/deepak.kumar/www/html/unopim/artisan queue:work
autostart=true
autorestart=true
user=deepak.kumar
numprocs=8
process_name=%(program_name)s_%(process_num)02d
redirect_stderr=true
stderr_logfile=/storage/logs/unopim_worker.err.log
stdout_logfile=/storage/logs/unopim_worker.out.log
stopasgroup=true

Explanation of Configuration Directives:

3. Starting Supervisor

After creating and saving your configuration file, you need to update Supervisor’s configuration and start the processes. Use the following commands:

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start unopim-worker:*

For further details and advanced configurations, you can refer to the Supervisor documentation. This will provide additional insights into how you can leverage Supervisor for managing your Unopim project effectively.

Support

So, that was much about the  Configuring Supervisor for Unopim for any queries or doubts reach out to us at support@webkul.com. You can also raise a ticket at our HelpDesk System.

. . .
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home