diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/api/doc/spec.txt b/api/doc/spec.txt index 58c4518..fd3adc0 100644 --- a/api/doc/spec.txt +++ b/api/doc/spec.txt @@ -7,7 +7,7 @@ UnitHosting API仕様書 ver 1.2 このドキュメントは、株式会社ディノが提供する、*ユニットホスティング*サービスのWebサービスAPI(以下、UHAPIと記述)の実装ガイドです。UHAPIでは以下のAPIサービスを提供します。 - + ### サーバAPIサービス 単一のサーバインスタンスの制御を行います。サーバAPIを利用するためには、サーバのインスタンスIDと有効なAPIキーを入手する必要があります。 @@ -40,7 +40,7 @@ XML-RPCエンドポイント 現在のサーバのステータスを返します。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー @@ -48,7 +48,7 @@ XML-RPCエンドポイント * running : 動作中 * halted : 停止中 - + ### vm.start #### 説明 @@ -56,14 +56,14 @@ XML-RPCエンドポイント 停止しているサーバを起動します。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー #### 戻り値 * string result : 実行結果(成功なら success) - + ### vm.shutdown #### 説明 @@ -71,14 +71,14 @@ XML-RPCエンドポイント 起動しているサーバをシャットダウン(ソフトシャットダウン)します。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー #### 戻り値 - + * string result : 実行結果(成功なら success) - + ### vm.powerOff #### 説明 @@ -86,14 +86,14 @@ XML-RPCエンドポイント 起動しているサーバをシャットダウン(ハードシャットダウン)します。vm.powerOff(ハードシャットダウン)はなるべくせずに可能な限りvm.shutdown(ソフトシャットダウン)を利用してください。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー #### 戻り値 * string result : 実行結果(成功なら success) - + ### vm.reboot #### 説明 @@ -101,14 +101,14 @@ XML-RPCエンドポイント 起動しているサーバを再起動します。メモリ・CPUコア・ディスクの変更があれば反映します。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー #### 戻り値 - + * string result : 実行結果(成功なら success) - + ### vm.destroy #### 説明 @@ -116,7 +116,7 @@ XML-RPCエンドポイント サーバを削除します。削除は停止(halted)時にしか行えません。 #### 引数 - + * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー @@ -127,21 +127,21 @@ XML-RPCエンドポイント ### vm.renew #### 引数 - + * string display_name : 表示名 * string rootpw : rootパスワード * string ssh_key : sshのキー * string user_script : ユーザスクリプトURI 以下の引数はオプションです: - + * string op_user : user名(ユーザスクリプト内で利用) * string op_mail : メールアドレス(ユーザスクリプト内で利用) #### 戻り値 * string result : 実行結果(成功なら success) - + #### 説明 サーバの初期化。初期化は停止(halted)時にしか行えません。 @@ -152,7 +152,7 @@ XML-RPCエンドポイント * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー - + #### 戻り値 * array @@ -162,7 +162,7 @@ XML-RPCエンドポイント #### 説明 サーバに割り当てられているIPドレスについての情報を返します。 - + ### vm.getMemoryUnitSize @@ -189,7 +189,7 @@ XML-RPCエンドポイント * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー * integer size : セットする追加メモリサイズ - + #### 戻り値 * string result : 実行結果(成功なら success) @@ -226,7 +226,7 @@ XML-RPCエンドポイント * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー * integer num : セットする追加CPUのコア数 - + #### 戻り値 * string result : 実行結果(成功なら success) @@ -245,7 +245,7 @@ XML-RPCエンドポイント * string instance_id : サーバのインスタンスID * string api_key : サーバのAPIキー * string display_name : 表示名 - + #### 戻り値 * string instance_id : サーバのインスタンスID @@ -266,7 +266,7 @@ XML-RPCエンドポイント * string instance_id : サーバグループのインスタンスID * string api_key : サーバグループのAPIキー - + #### 戻り値 * array @@ -283,38 +283,38 @@ XML-RPCエンドポイント * string instance_id : サーバグループのインスタンスID * string api_key : サーバグループのAPIキー - + * string display_name : 表示名 * string rootpw : rootパスワード * string ssh_key : sshのキー * string user_script : ユーザスクリプトURI 以下の引数はオプションです: - + * string op_user : user名(ユーザスクリプト内で利用) * string op_mail : メールアドレス(ユーザスクリプト内で利用) * string plan_id : プランID - + * string instance_id : サーバグループのインスタンスID #### 戻り値 * string instance_id : サーバのインスタンスID * string result : 実行結果(成功なら success) - + #### 引数 * string instance_id : サーバグループのインスタンスID * string api_key : サーバグループのAPIキー - + #### 戻り値 * integer id : plan_id * string name : プラン名 * string cycle : 課金サイクル(hourly,monthly) * float point : 課金ポイント(cycle毎) - + #### 説明 現在利用可能なプランの一覧を取得します。 @@ -344,7 +344,7 @@ Ruby,PHP,Python,Perlの各言語によるスケールアップのサンプルプ * 1.0 APIマニュアル初版公開 * 1.1 `vm.getIpInfo`の追加 - + diff --git a/scripts/daemontools.sh b/scripts/daemontools.sh index 5850211..caf6c43 100644 --- a/scripts/daemontools.sh +++ b/scripts/daemontools.sh @@ -14,12 +14,12 @@ diff -ur daemontools-0.76.old/src/error.h daemontools-0.76/src/error.h @@ -3,7 +3,7 @@ #ifndef ERROR_H #define ERROR_H - + -extern int errno; +#include - + extern int error_intr; extern int error_nomem; EOF -./package/install +./package/install diff --git a/scripts/djbdns.sh b/scripts/djbdns.sh index 834584f..1024c13 100755 --- a/scripts/djbdns.sh +++ b/scripts/djbdns.sh @@ -9,16 +9,16 @@ tar xvzf djbdns-1.05.tar.gz cd djbdns-1.05 patch < - + extern int error_intr; extern int error_nomem; EOF diff --git a/scripts/eccube.sh b/scripts/eccube.sh index 6eec2c9..997545b 100755 --- a/scripts/eccube.sh +++ b/scripts/eccube.sh @@ -21,7 +21,7 @@ DirectoryIndex index.html index.php AllowOverride All Options +FollowSymLinks - + AuthUserFile /var/www/etc/htpasswd AuthGroupFile /dev/null AuthType Basic @@ -33,7 +33,7 @@ EOF cd /var/www/sites/ wget http://downloads.ec-cube.net/src/eccube-2.4.3.tar.gz -tar xvzf eccube-2.4.3.tar.gz +tar xvzf eccube-2.4.3.tar.gz chmod 777 eccube-2.4.3/html/install/temp # global ipの取得 diff --git a/scripts/nginx.sh b/scripts/nginx.sh index 57d9cbb..705b200 100644 --- a/scripts/nginx.sh +++ b/scripts/nginx.sh @@ -10,4 +10,4 @@ cd nginx-0.9.4 --lock-path=/var/lib/nginx/run \ --with-http_ssl_module make install - + diff --git a/scripts/openpne.sh b/scripts/openpne.sh index 2c8c0af..4bbc0c0 100644 --- a/scripts/openpne.sh +++ b/scripts/openpne.sh @@ -41,7 +41,7 @@ cat < /etc/httpd/site.d/openpne.conf AllowOverride All Options +FollowSymLinks - + AuthUserFile /var/www/etc/htpasswd AuthGroupFile /dev/null AuthType Basic @@ -73,7 +73,7 @@ IE: http://uhuser@$GLOBAL_IP/ others: http://uhuser:$password@$GLOBAL_IP/ - + -------------------- I placed the password at /home/uhuser/openpne-password.txt,too. diff --git a/scripts/passenger-nginx.sh b/scripts/passenger-nginx.sh index 766fcc6..086d40e 100644 --- a/scripts/passenger-nginx.sh +++ b/scripts/passenger-nginx.sh @@ -6,7 +6,7 @@ gem install passenger cd /usr/src wget http://nginx.org/download/nginx-0.9.4.tar.gz tar xvzf nginx-0.9.4.tar.gz -sudo /usr/sbin/adduser nginx -d /var/lib/nginx -s /sbin/nologin +sudo /usr/sbin/adduser nginx -d /var/lib/nginx -s /sbin/nologin ./configure \ --user=nginx \ @@ -34,5 +34,5 @@ EOF chmod +x /var/lib/nginx/run - + diff --git a/scripts/ucspi-tcp.sh b/scripts/ucspi-tcp.sh index ca5fbbe..54b4bbc 100755 --- a/scripts/ucspi-tcp.sh +++ b/scripts/ucspi-tcp.sh @@ -9,16 +9,16 @@ tar xvzf ucspi-tcp-0.88.tar.gz cd ucspi-tcp-0.88 patch < - + extern int error_intr; extern int error_nomem; EOF