supervisorctl start all supervisorctl stop all supervisorctl restart all supervisorctl status all Here is how to start, stop, or restart the services. Sendmail: /bin/bash -c "exec /etc/init.d/sendmail start" Certainly there are many ways in which most of these can be started.Īpache (httpd): /bin/bash -c "exec /usr/sbin/apachectl -DFOREGROUND" Here are commands for some common services. Supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface This is a sample configuration file (also available on GitHub). Once installed, all the user would need is a configuration file that specifies the commands to run the services and what the names of the services should be Most Linux distributions have supervisor (or supervisord) in their default package repository – it just needs to be installed:Īlpine Linux: apk -update add supervisorĬentOS (needs to install epel-release first): yum -y install epel-release Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems. While there are several options, a common one being creating a custom script for this, I find Supervisor a very simple and useful way to manage multiple services. My preference when running more than one service in a Docker container is to use Supervisor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |