Supervisor Configuration
The extension uses Magento job queue to allow almost real-time recalculation after product data import from the accounting system or sales data import from the marketplaces. To run the Magento job queue for our extension we recommend using Supervisor - a tool which can indefinitely run a shell command and restart it if it fails.
Use the following steps to install and configure it, and replace {domain} with your Magento website domain and {project_dir} with absolute path to the Magento project directory :
Install Supervisor with root user:
apt-get install supervisor
Create file
/etc/supervisor/conf.d/{domain}__mana_call.conf
withroot
user:[program:{domain}__mana_call] process_name=%(program_name)s_%(process_num)02d directory={project_dir} command=php bin/magento queue:consumers:start mana_call autostart=true autorestart=true user=root numprocs=1 redirect_stderr=true stdout_logfile=/var/log/supervisor/%(program_name)s.log
Start the Magento job queue for our extension under Supervisor with root user:
supervisorctl reread supervisorctl update supervisorctl start {domain}__mana_call:*