| スクリプト実行の流れ |
まず,「K」で始まるスクリプトを次のように実行した後,
/etc/rc2.d/K07dmi stop /etc/rc2.d/K07snmpdx stop /etc/rc2.d/K16apache stop /etc/rc2.d/K28nfs.server stop |
「S」で始まるスクリプトを次のように実行する。
/etc/rc2.d/S01MOUNTFSYS start /etc/rc2.d/S5RMTMPFILES start /etc/rc2.d/S20sysetup start ... /etc/rc2.d/S99audit start /etc/rc2.d/S99dtlogin start |
これらのスクリプトは,Linux の場合と同じように「start」や「stop」をコマンドライン引数として取るようになっている。「start」の時には起動処理を,「stop」の場合には終了処理を行うようになっている。 例えば,「S88sendmail」の場合は次のようになっていて,1つのスクリプトで起動と終了ができるようになっている。
例:「/sbin/sh」スクリプト
別ウィンドウで見る or 06a.txt
| 6/8 |
