• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How To Install and configure daemon for supervisor on CentOS7

2285

To Install and configure daemon for supervisor on CentOS7

Supervisor is a client/server process control system that allows its users to monitor and control a number of processes on Linux and other UNIX-like operating systems.   Supervisor will mange your process to live all time. It is so simple to install Supervisor, and this article covers the method to install and configure Supervisor on CentOS7

 

Installing   Daemon

It is really very essential to install the dependency python package in your system before you actually install   the supervisor. 

[root@linuxhelp ~]#  yum -y install python-setuptools python-pip
BDB2053 Freeing read locks for locker 0x504: 2881/140415299045184
BDB2053 Freeing read locks for locker 0x506: 2881/140415299045184
Loaded plugins: fastestmirror, langpacks  
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
Package python-setuptools-0.9.8-7.el7.noarch already installed and latest version
Nothing to do

 

After that, you shall proceed with the installation of Supervisor and for that, you need to run the following command.

[root@linuxhelp ~]# easy_install supervisor
Searching for supervisor
Reading https://pypi.python.org/simple/supervisor/
Best match: supervisor 3.3.3
Downloading https://pypi.python.org/packages/31/7e/788fc6566211e77c395ea272058eb71299c65cc5e55b6214d479c6c2ec9a/supervisor-3.3.3.tar.gz#md5=0fe86dfec4e5c5d98324d24c4cf944bd
Processing supervisor-3.3.3.tar.gz
Writing /tmp/easy_install-rpPGqZ/supervisor-3.3.3/setup.cfg
Running supervisor-3.3.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rpPGqZ/supervisor-3.3.3/egg-dist-tmp-F9eOtC
warning: no previously-included files matching ' *'  found under directory ' docs/.build' 
Adding supervisor 3.3.3 to easy-install.pth file
Installing echo_supervisord_conf script to /usr/bin
Installing pidproxy script to /usr/bin
Installing supervisorctl script to /usr/bin
Installing supervisord script to /usr/bin
Installed /usr/lib/python2.7/site-packages/supervisor-3.3.3-py2.7.egg
Processing dependencies for supervisor
Searching for meld3> =0.6.5
Reading https://pypi.python.org/simple/meld3/
Best match: meld3 1.0.2
Downloading https://pypi.python.org/packages/45/a0/317c6422b26c12fe0161e936fc35f36552069ba8e6f7ecbd99bbffe32a5f/meld3-1.0.2.tar.gz#md5=3ccc78cd79cffd63a751ad7684c02c91
Processing meld3-1.0.2.tar.gz
Writing /tmp/easy_install-OIgs1p/meld3-1.0.2/setup.cfg
Running meld3-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OIgs1p/meld3-1.0.2/egg-dist-tmp-5t_61u
zip_safe flag not set  analyzing archive contents...
Adding meld3 1.0.2 to easy-install.pth file
Installed /usr/lib/python2.7/site-packages/meld3-1.0.2-py2.7.egg
Finished processing dependencies for supervisor

 

Once it is installed, you shall check the version of Supervisor which you have just installed. 

[root@linuxhelp ~]# supervisord -version
3.3.3


Later, you need to copy the configuration file from echo_supervisord_conf   to /etc/ supervisord.conf, and for that purpose, you shall run the following command. 

[root@linuxhelp ~]# echo_supervisord_conf  >  /etc/supervisord.conf

 

You should now create a new file in systemd location for daemon configuration. Do that through the vim editor as follows. 

[root@linuxhelp ~]# vim /usr/lib/systemd/system/supervisord.service

 

In that file, you need to add the following lines.

[Unit]                                                              
 Description=supervisord - Supervisor process control system for UNIX
 Documentation=http://supervisord.org                                
 After=network.target                                                
 [Service]
 User=user1                                                           
 Type=forking                                                        
 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf             
 ExecReload=/usr/bin/supervisorctl reload                            
 ExecStop=/usr/bin/supervisorctl shutdown                            
 [Install]                                                           
 WantedBy=multi-user.target


After the configuration, you need to reload the    daemon as follows. 

[root@linuxhelp ~]# systemctl daemon-reload


And then, enable supervisor with the help of the following command. 

[root@linuxhelp ~]# systemctl enable supervisord
Created symlink from /etc/systemd/system/multi-user.target.wants/supervisord.service to /usr/lib/systemd/system/supervisord.service.


Later, you should start supervisor sevice, and for that you need to run the following command. 

[root@linuxhelp ~]# systemctl start supervisord.service

 

You shall now check the status for supervisor.

[root@linuxhelp ~]# systemctl status supervisord.service
● supervisord.service - Process Monitoring and Control Daemon
   Loaded: loaded (/usr/lib/systemd/system/supervisord.service  disabled  vendor preset: disabled)
   Active: active (running) since Fri 2017-12-22 07:23:47 EST  7s ago
  Process: 2999 ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf (code=exited, status=0/SUCCESS)
 Main PID: 3000 (supervisord)
   CGroup: /system.slice/supervisord.service
           └─3000 /usr/bin/python /usr/bin/supervisord -c /etc/supervisord.co...
Dec 22 07:23:47 linuxhelp.com systemd[1]: Starting Process Monitoring and Co....
Dec 22 07:23:47 linuxhelp.com systemd[1]: Started Process Monitoring and Con....
Hint: Some lines were ellipsized, use -l to show in full.

With this, the installation and configuration of daemon for Supervisor on  CentOS7 comes to an end. 

Tags:
connor
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Linux supervisor?

A

Supervisor: A Process Control System. A supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.

Q

What are the main responsibilities of a supervisor?

A

Supervisor Responsibilities
Setting goals for performance and deadlines in ways that comply with the company's plans and vision.
Organizing workflow and ensuring that employees understand their duties or delegated tasks.
Monitoring employee productivity and providing constructive feedback and coaching.

Q

What is the daemon configuration location for centos6?

A

There it is init script you can create bash script by "/etc/init.d"

Q

How Do I Choose a Reset Threshold and Tolerance?

A

Generally speaking, the supervisory device's reset threshold should be set at or below the lowest power-supply output voltage. For example, a 3.3V power supply rated at ±5% has a minimum output voltage of 3.135V. The appropriate supervisory reset threshold should have a maximum voltage of 3.135V or less. A supervisory device with a 3.059V nominal reset threshold and a tolerance of 2.5% has a maximum threshold voltage of 3.135V, which is ideal. In some cases, it is a good idea to choose a lower reset threshold to account for power-supply glitches or noise.

Q

To What Does Device Tolerance Refer in CPU Supervisors?

A

Device tolerance can be used to refer to two different device values. One value is the voltage at which the device recognizes that power is good. On Maxim devices, this value would generally be indicated simply as a percentage (for example, 5%). It would indicate that the device will trip just below the operating voltage minus 5%.

Related Tutorials in How To Install and configure daemon for supervisor on CentOS7

Related Tutorials in How To Install and configure daemon for supervisor on CentOS7

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How To Install and configure daemon for supervisor on CentOS7

Related Forums in How To Install and configure daemon for supervisor on CentOS7

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.