2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

DragonflyBSD で supservisord を起動するまで

Last updated at Posted at 2014-05-04

DragonflyBSD で supservisord を起動するまで.

DPorts で supervisor をインストールする.

$ pkg search supervisor
py27-supervisor-3.0_1,1
$ sudo pkg install py27-supervisor

このまま起動しても動かないので起動スクリプトの中身を確認すると以下のようにある.supervisord_enable を設定する必要があるらしい.

/usr/local/etc/rc.d/supervisord
  9 # Add the following line to /etc/rc.conf.local or /etc/rc.conf
 10 # to enable supervisord:
 11 #
 12 # supervisord_enable="bool"     Set to NO by default.
 13 #                               Set it to YES to enable supervisord.
 14 # supervisord_config (patch):   Set to /usr/local/etc/supervisord.conf by default.
 15 # supervisord_user (username):  Set to root by default.

rc.conf と rc.conf.local の使い分けはよくわかってないがとりあえず rc.conf.local に追加.

$ sudo vim /etc/rc.conf.local
$ cat /etc/rc.conf.local 
supervisord_enable="YES"

下記のように起動.

$ sudo service supervisord start
Starting supervisord.

動いていることを確認.

$ pgrep -fl supervisord
5490 /usr/local/bin/python2.7 /usr/local/bin/supervisord -u root -c /usr/local/etc/supervisord.conf
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?