Q. /usr/local/etc/rc.d/hogehoged.sh という起動スクリプトを用意したが、 特定のホストのみ実行するようにしたい。どうするのが一般的でしょう? A. 以下の方法があります。 A1. その起動スクリプト中でホスト名を見て切り分ける。 例) servername=hogeserv if [ `hostname` = $servername ]; then /usr/local/libexec/hogehoged && echo ' hogehoged' fi A2. 実行させたいホストの /etc/rc.conf にのみ、 hogehoged=YES と書いておき、起動スクリプト中では、 if [ x$hogehoged = xYES ]; then /usr/local/libexec/hogehoged && echo ' hogehoged' fi と書いておく。