以下は JE2BWM ほかが作成した翻訳 です。 原文は University of California より GFDL で配付されており、 この翻訳も GFDL に従います。
原文: Daemons   (翻訳対象の更新日付は 10:08 PM UTC, April 16 2007 です)。

デーモン

boinc.gif
(英語のみ)

 

デーモン(Daemons)とはサーバで動作し、普通は定常的に走り続けているプログラムのことです。 あなたのプロジェクトのデーモンは、そのプロジェクトの config.xml ファイルに記述します。 このファイルに含める要素の形式は以下のとおりです。
<daemon>
  <cmd> feeder -d 3 </cmd>
  [ <host>host.domain.name</host> ]
  [ <disabled> 0|1 </disabled> ]
  [ <output>filename</output> ]
  [ <pid_file>filename</pid_file> ]
</daemon>
<daemon>
...
</daemon>

cmd 当該デーモンを開始させるコマンド。 プロジェクトの bin/ ディレクトリに置かれたプログラムでなければなりません。
host 当該デーモンが動作するべき計算機を指定します。 指定しなければ、config.xml に指定したプロジェクトの主計算機と解釈されます。
disabled 零でない値を指定すると、これが属する daemon 要素は無視されます。
output 出力ファイルの名前。 (このファイルは、log_HOSTNAME ディレクトリ内に置かれます)。 指定しなければ、デーモンのプログラムの名前の末尾に「.log」を付けた名前が使われます。 一つの計算機で同じデーモンプログラムを複数動作させるときには、指定が必要です。
pid_file デーモンのプロセスIDをしまっておくファイルの名前を指定します。 (pid_HOSTNAME ディレクトリにこのファイルは書かれます)。 指定しないと、デーモンのプログラムの名前の末尾に「.pid」を付けた名前が使われます。 一つの計算機で同じデーモンプログラムを複数動作させるときには、指定が必要です。

デーモン群は、bin/start スクリプトで開始されます。 そして、bin/stop で、(SIGHUP シグナル)を受信させて停止させます。

典型的にはこの仕組みが、 仕事を処理するデーモン を動作させるために使われます。 上りのトリクルメッセージを使うプロジェクトでは、さらに trickle-up handler を使う必要があります。


BOINCの訳のメインページに戻る | (原文のメインページに戻る)
 

最終更新時刻 20:12:05, 2007年05月19日(JST)
Copyright © 2009 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2009 Komori Hitoshi(je2bwm at jarl.com). Japanese translation from English web pages on BOINC. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.