デーモン |
|
デーモン(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 を使う必要があります。
最終更新時刻 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.