Supervisor Configration


Gagan908

Uploaded on Jan 27, 2023

Category Education
Category Education

Comments

                     

Supervisor Configration

Supervisor Configuration By Gagan Step 1  In Step 1 First Install Supervisor On Server or Local Machine  sudo apt-get install supervisor 2 Step 2  In Step 2 Create a file In this location etc/supervisor/config.d  sudo touch filename.conf 3 Step 3  In Step 3 Paste configration code inside new file  [program:filename]  process_name=%(program_name)s_%(process_num)02d  command=  autostart=true  autorestart=true  ;user=forge  numprocs=2  redirect_stderr=true  stdout_logfile=/var/log/file.log  4 Step 4  In Step 4 Create log file for supervisor operations  var/log/folder/filename.log 5 Step 5  In Step 5 Run Following Commands  Sudo supervisorctl Reread  Sudo supervisorctl update  Sudo supervisorctl start filename 6