Compassのインストール
$ sudo gem install compassSupervisorのインストール
$ sudo yum install python-setuptools $ sudo easy_install supervisor/etc/supervisord.conf の作成(echo_supervisord_conf の内容に以下を追記)
[program:compass-watch] command = compass watch --poll --app-dir /path/to/app-dir/ -c /path/to/config.rb autostart = true autorestart = true/etc/rc.d/init.d/supervisord の作成
#!/bin/sh # # /etc/rc.d/init.d/supervisord # sudo chkconfig --add supervisord # sudo chkconfig --level 35 supervisord on # # chkconfig: - 64 36 # description: Supervisor Server # processname: supervisord . /etc/rc.d/init.d/functions NAME="supervisord" COMMAND="/usr/bin/supervisord" PIDFILE="/var/run/$NAME.pid" CONFIG="/etc/supervisord.conf" start() { echo -n $"Starting $NAME: " daemon $COMMAND -c $CONFIG --pidfile $PIDFILE [ -f $PIDFILE ] && success $"$NAME startup" echo } stop() { echo -n $"Shutting down $NAME: " [ -f $PIDFILE ] && killproc $NAME || success $"$NAME shutdown" echo } case "$1" in start) start ;; stop) stop ;; status) status $NAME ;; restart) stop start ;; *) echo "Usage: $0 {start|stop|restart|status}" ;; esac/etc/rc.d/init.d/supervisord のサービス登録と自動起動設定
$ sudo chkconfig --add supervisord $ sudo chkconfig --level 35 supervisord on
No comments:
Post a Comment