Glover
  • Introduction
  • Video Guide
    • How to Setup Vendor
  • Usage Flows (FlowCharts)
  • Firebase
    • Firebase
    • Firebase firestore database
    • Firebase Security
    • Firebase Storage
    • Firestore indexes
    • Chat & Live tracking
  • Backend
    • NOTICE
    • VPS/Shared Hosting
    • Installation
    • Database Configuration
    • GUI Installer
    • Timezone
    • Firebase
      • Firebase Forgot password
    • Web Notification
    • Reskin Mobile App
    • Change Backend Color
    • Terminal
      • Commands
    • Screenshots
    • Auto-assignment
    • Order schedule
    • CRON job
    • Clear Data (Users/Orders etc)
    • Email Server Settings
    • SMS Gateway
    • Payment Gateways
    • Webhooks - Payment gateway
    • Vendor Subscription
    • Language / Translation
    • HOW TO UPDATE
    • In-App Live chat/support
    • Geocoding and Place search
    • Features
      • Firebase/Notification Delay
      • Fleet Management
      • Loyalty points
      • Home Screen Design
      • Featured Vendors
      • Trip recalculation/Outstanding payments
      • Switch between Taxi/Regular Driver
      • Data Translation - Backend
  • 🔥Supervisor Setup - VPS
    • Introduction
    • Install & Setup Supervisor
    • Taxi Booking
    • How to verify Taxi driver Vehicle
    • Websocket Setup
      • Laravel reverb Config
  • Flutter App
    • Getting Started
    • Steps
    • Directory Structure
    • Change App Name & ID
    • Change App icon & splash
    • App Color / Theme
    • Connect To Backend
    • Firebase
    • Firebase Auth - Phone
    • Firebase Phone OTP - Android
    • Firebase Phone OTP - iOS
    • Firebase Notification iOS
    • Share link - Firebase dynamic link
    • Social Media Login
      • Google login
      • Facebook Login
      • Sign-In with Apple
    • Google Map
    • Change App Language
    • Notification Sound
    • Custom Translation ~ 1.4.8
    • Custom Translation +1.5.0
    • Change App Font
    • Running on VS Code
    • Running on Android Studio
    • Generate Android Release App
    • Upload to Apple App Store
    • Screenshots
  • Demo Accounts
  • FAQs
    • Backend Image not working
    • Backend Backup not working
    • Upgrade without losing data
    • Backend Rollback
    • Blank Home screen
    • Custom Token
    • Product price zero(0) in details
    • Auto-cancel Not working
    • Pharmacy vendor
    • Vendor default rating
    • App logins
    • Error ==> type 'String' is not a subtype of type 'int'
    • NDK version error
    • Push Notification
    • Delivery Zone Map error
    • HOW TO UPDATE ADMINEND
    • Driver app rejected by Google
    • Cron job error
    • Auth pages Not working - App
    • Update App Translation
  • HOW-TO
    • Onboarding Settings
    • Setup Parcel Vendor
    • Set Vendor Custom Fees
    • Digital Products
    • Setup Taxi driver
    • Multiple Currency Taxi support
    • How Prescription Order works
    • Earning
      • Vendors
      • Drivers
    • QR Code Login
    • Single Vendor Mode
    • Enforce CASH Payment For Delivery Fee Only
    • System Contact Email
    • Driver Matching Flow
  • Extensions
    • Driver tracking extensions
    • Paymongo Gateway
    • Mercadopago Gateway
    • Nagad [Bangladeshi]
    • Paytrail
    • Paymaya Gateway
    • Emailer
    • POS
      • Mobile App
        • Requirement
        • Flutter SDK
        • Change App Name & ID
        • Connect To Backend
        • App build & release
      • Change logs
    • Glover Website
    • External Notifier
      • Slack Setup
      • Telegram Setup
    • Instamojo - Payment
  • Upgrades
    • How to update
    • Important: Backend VPS/Shared hosting
    • Older Version Upgrade Instructions
      • Upgrade to 1.2.1
      • to 1.2.3
      • ~ 1.3.2
      • to 1.3.1
      • to 1.3.3
      • to 1.3.4
      • to 1.3.5
      • to 1.3.7
      • to 1.3.8
      • to 1.3.9
      • to 1.4.0
      • to 1.4.1
      • to 1.4.2
      • to 1.4.3
      • to 1.4.5
      • to 1.4.6
      • to 1.4.7
      • 1.4.8
    • 1.5.0 - 1.5.9
      • 1.5.0
      • 1.5.1
      • 1.5.2
      • 1.5.3
      • 1.5.4
      • 1.5.5
      • 1.5.5-fix-1
      • 1.5.6
      • 1.5.7
      • 1.5.8
      • 1.5.9
    • 1.6.0 - 1.6.70
      • 1.6.0
      • 1.6.1
      • 1.6.2
      • 1.6.3
      • 1.6.4
      • 1.6.5
      • 1.6.6
      • 1.6.62
      • 1.6.63
      • 1.6.70
    • 1.7.00 - 1.7.21
      • 1.7.00
      • 1.7.01
      • 1.7.02
      • 1.7.10
      • 1.7.20
      • 1.7.21
    • 1.7.30 - 1.7.60
      • 1.7.30
      • 1.7.31
      • 1.7.40
      • 1.7.41
      • 1.7.42
      • 1.7.43
      • 1.7.44
      • 1.7.45
      • 1.7.50
      • 1.7.51
      • 1.7.60
    • 1.7.70
  • Change logs
Powered by GitBook
On this page
  • Step 1: Install Supervisor in Linux
  • Step 2: Supervisor Configuration
  • Step 3: Start Supervisor
  • Step 4: Start the queue

Was this helpful?

  1. Supervisor Setup - VPS

Install & Setup Supervisor

PreviousIntroductionNextTaxi Booking

Last updated 2 days ago

Was this helpful?

In this short snippet, you will learn how to install and manage in Ubuntu machine. The steps is very straight forward so let's get started.

Step 1: Install Supervisor in Linux

Ubuntu

To install supervisor in ubuntu you can use "apt-get" command line. Do note that you need to use "sudo" in order to run this command.

sudo apt-get install supervisor

CentOS

To install supervisor in centOS (used by most whm server) you can use "yum" command line. Do note that you need to use "sudo" in order to run this command.

sudo yum update -y
sudo yum install epel-release
sudo yum update
sudo yum -y install supervisor

Then start and enable the supervisord daemon to start on boot using the commands below:

sudo systemctl start supervisord
sudo systemctl enable supervisord

Step 2: Supervisor Configuration

The supervisor configuration can be located in "/etc/supervisor/conf.d" or "/etc/supervisord.d" (in centOS) and from within this directory, you can create as many configurations as you like.

For this example, we'll set up Laravel Queue supervisor configuration. To create a new file from within the supervisor config directory called "queue_manager.conf" or "queue_manager.ini" and the content of the file should be as follows.

Create the config file using the command below:

Ubuntu

nano /etc/supervisor/conf.d/queue_manager.conf

CentOS

nano /etc/supervisord.d/queue_manager.ini

Then paste the follow code in the file:

[program:laravel_queue]
process_name=%(program_name)s_%(process_num)02d
command=php /PATH_TO_YOUR_BACKEND/artisan queue:work --tries=1
startsecs = 0
autostart=true
autorestart=true
user=root
numprocs=1
redirect_stderr=true
stderr_logfile=/PATH_TO_YOUR_BACKEND/storage/logs/laraqueue.err.log
stdout_logfile=/PATH_TO_YOUR_BACKEND/storage/logs/laraqueue.out.log
stderr_logfile_maxbytes=1MB
stdout_logfile_maxbytes=1MB

In the code above, you have to replace the following with the right values on your server: PATH_TO_YOUR_BACKEND replace with the directory path of where you backend files is location, usually its something like home/USERNAME/public_html

user=forge, change it to the user you are logged in in your terminal, usually is root user, so you can set: user=root

Step 3: Start Supervisor

Once you have created the configuration, you can start the supervisor process. To start supervisor you can run the following commands.

sudo supervisorctl reread
sudo supervisorctl update

Step 4: Start the queue

Run the command below to start just the laravel_queue you just created above

sudo supervisorctl start laravel_queue

Note: If nothing works after run the command above, you can rather run the command below, to make supervisor start all queue:

sudo supervisorctl start all

Done!!

🔥
Supervisor