1
起動時のinit.dスクリプトのPATH問題
ユニコーンインスタンス(Ubuntu 12.04LTS)を起動する簡単なスクリプトがあります。 #!/bin/sh case "$1" in start) echo "starting" cd /path && bundle exec unicorn -c /path/config/unicorn.rb -D -E production ;; stop) echo "Stopping Unicorn Instances" kill `cat /tmp/unicorn.pid` ;; restart) echo "sending USR2 to all unicorns" kill -s USR2 `cat /tmp/unicorn.pid` ;; esac exit 0 呼び出されたときに正しく動作します。 /etc/init.d/unicorn_boot.sh start 起動時に起動させたいので、実行しました。 …