LoginSignup
2
2

More than 5 years have passed since last update.

daemontoolsの代替として最近使い出したスーパーサーバーSupervisorの導入

Posted at

$ cd /usr/local/src
$ sudo yum -y install python-setuptools
$ easy_install pip
$ pip install supervisor

ログディレクトリ

$ mkdir -m 775 /var/log/supervisor/

confディレクトリ

$ mkdir -m 775 /etc/supervisord.d

conf精製用のコマンドで生成

$ echo_supervisord_conf > /etc/init/supervisord.conf

/etc/init/supervisord.conf
description "supervisord"

start on runlevel [2345]
stop on runlevel [!2345]

respawn
exec /usr/bin/supervisord -n

supervisor起動

sudo initctl start supervisord

$ sudo supervisorctl status
redis STOPPED May 02 01:59 PM

$ sudo supervisorctl start redis

$ sudo supervisorctl status
redis RUNNING pid 31242, uptime 0:00:06

各種設定変更時

sudo supervisorctl reread redis

sudo initctl restart supervisord

参考

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2