Supervisor Service
How to create new supervisor service
First of all, you need to install supervisor service:
sudo apt-get install supervisor -y
Path to copy configurations files:
/etc/supervisor/conf.d/*
After copy file, reread supervisor configuration:
sudo supervisorctl -c /etc/supervisor/supervisord.conf reread
sudo supervisorctl -c /etc/supervisor/supervisord.conf reload
If something went wrong, sock may be deleted in /var/run/supervisor.conf, and supervisorctl status will show an error. To solve, check new configuration files, if something is buggy, fix it or remove conf and run command again.
Then, run, to reload new configuration and start service again with:
sudo supervisorctl reload
Now, your supervisor service should be up and running
References
Some interesting samples and documentation