LoginSignup
3
3

More than 5 years have passed since last update.

Aipo7をOpenVzにインストールしてみた

Last updated at Posted at 2014-04-09

OpenVzにインストールしてみた。

OpenVz特有の対応

eth0ではなくvenet0:0だったりするので

/usr/local/aipo/bin/install.conf
- netitf=eth0
+ netitf=venet0:0

OS起動とともに自動起動

/home/owner/bin/aipowatch.sh
AIPO_PROC_COUNT=`ps -ef | grep aip[o] | grep -v aipowatch.sh | wc -l`
LOGFILE=/home/owner/aipo.log

if [ $AIPO_PROC_COUNT -eq 0 ];then
  cd /usr/local/aipo/bin/
  sudo sh startup.sh >> $LOGFILE
fi

cronに登録

crontab -l owner
@reboot /home/owner/bin/aipowatch.sh
* * * * *  /home/owner/bin/aipowatch.sh

トラブルシューティング

postgresが起動していない場合、セッションがタイムアウトしました。と表示される。

cronでsudoできない場合、cronの実行時間微調整, @reboot - Qiita参照

3
3
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
3
3