# Source function library.
if [ -f /etc/init.d/functions ] ; then
/etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ] ; then
/etc/rc.d/init.d/functions
else
exit 0
fi
where ?? is a number, e.g. 81, or a high number, but it must not be in use by any of the other scripts (do a ls of the directory and choose a non-used number).
という一文が特によくわからなかったのですが、
これは、K81popfileはrc0.dに、S81popfileはrc3.dに
入れてやればよいという解釈でいいのでしょうか?ちなみに81は未使用です。
"or a high number" とあったので、それ以外でも未使用であれば82とかでもいいということでしょうか?
RE: popfileのデーモン化 (2007-01-09 23:21 by Anonymous #27020)
なるほど。指南していただいたページを見ると、function 云々のくだりは、省略していいようですね。
とすると、あとは番号の話だけですが81以上?(それとも以下?)の番号をとるようにしなければいけないというのもあまり気にしなくてよいということですか?
non-used number と書いてあったので、未使用番号を使わないといけないということかと思っていました。
where ?? is a number, e.g. 81, or a high number, but it must not be in use by any of the other scripts (do a ls of the directory and choose a non-used number).
とくに、番号は重なっても、必要なサービスがあがった後に起動していればよいし、いち早く終了させるということを考えておけばよいということなんですね。
ひとまず、同じamatubu さんと同じ設定でやってみてみます。