etcdの導入でデーモンの管理のためにpythonのsupervisordを導入する。 環境はCentOS6.5。
% cat /etc/redhat-release CentOS release 6.5 (Final)
epelリポジトリが入っている前提でだと簡単に導入出来る。
% sudo yum install --enablerepo=epel supervisor -y |tee debug Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * epel: ftp.iij.ad.jp * epel-source: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * remi: remi.kazukioishi.net * remi-php55: remi.kazukioishi.net * remi-php56: remi.kazukioishi.net * remi-test: remi.kazukioishi.net * updates: ftp.iij.ad.jp 196 packages excluded due to repository priority protections Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package supervisor.noarch 0:2.1-9.el6 will be installed --> Processing Dependency: python-meld3 for package: supervisor-2.1-9.el6.noarch --> Running transaction check ---> Package python-meld3.x86_64 0:0.6.7-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: supervisor noarch 2.1-9.el6 epel 292 k Installing for dependencies: python-meld3 x86_64 0.6.7-1.el6 epel 71 k Transaction Summary ================================================================================ Install 2 Package(s) Total download size: 364 k Installed size: 1.4 M Downloading Packages: -------------------------------------------------------------------------------- Total 8.2 MB/s | 364 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : python-meld3-0.6.7-1.el6.x86_64 1/2 Installing : supervisor-2.1-9.el6.noarch 2/2 Verifying : python-meld3-0.6.7-1.el6.x86_64 1/2 Verifying : supervisor-2.1-9.el6.noarch 2/2 Installed: supervisor.noarch 0:2.1-9.el6 Dependency Installed: python-meld3.x86_64 0:0.6.7-1.el6 Complete! % rpm -qv supervisor supervisor-2.1-9.el6.noarch
% rpm -ql supervisor |grep conf /etc/supervisord.conf
この設定ファイルにはincludeセクションが入ってないので末尾に以下の2行を追加する。
[include] files = /etc/supervisord.d/*.ini
% sudo chkconfig --add supervisord % sudo service supervisord status supervisord is stopped % sudo service supervisord start Starting supervisord: [ OK ]
- http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/
- http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/i386/
- RPM RedHat EL 6 supervisor 3.0 noarch rpm