Table of Contents:
What is Supervisord?
Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.1
Basically if you have script that running in the background such as script that waiting for user to do something, run it using supervisord. It is different from cron because Supervisord always run without stopping.
Example script that should be running using Supervisord is Laravel Queue and Nodejs Script.
Creating Supervisord job
To create supervisord job in Runcloud, simply click “Create” button and fill in the form.
|Name||The name of your job|
|User||Username of a user to run the job|
|Auto restart||Enable your job to auto restart if there is an error|
|Auto start||Enable your job to automatically start after service is runnning|
|Numprocs||Number of processing job to run in parallel|
|Vendor||Pre-defined binary provider that you want to use to run the job|
|Command||The actual command/script to run|
Click save button and RunCloud will push your job to your server.
Every job will have their status whether it is RUNNING or FATAL. RunCloud get this status report from your server in real time.
You may reload you job if you change the content of the script that you asked Supervisord to run. This will send the command to the server to reload the job.
If you are no longer using the Supervisord job. You may delete the job. Deleting a job will have no effect on other job.
If you are manually editing Supervisord job, you might want to restore it back to default configuration that is stored in RunCloud. This will revert all Supervisord jobs to the configuration that is stored in RunCloud. Any job that is not created by RunCloud will not be deleted.