Turbolinux 11 Server で Postfix の起動や停止を行うには、/etc/init.d/postfix スクリプトに以下のオプションを指定して実行します。
表 10-2. /etc/init.d/postfix
| オプション | 操作 |
|---|---|
| start | Postfix のデーモンを起動します。 |
| stop | Postfix のデーモンを停止します。 |
| restart | Postfix のデーモンを再起動します。stop のあとに、start を実行します。 |
| status | Postfix の起動状況を確認します。 |
| abort | Postfix をアボート(中断)します。 |
| reload | 設定ファイルを再読込します。起動中のプロセスは、適切なタイミングで終了します。 |
| condrestart | デーモンが動作しているかを確認後、再起動します。(/var/lock/subsys/postfix が存在するとき再起動します。) |
Postfix を起動するには、以下のコマンドを実行します。
# /etc/init.d/postfix start |
Postfix を停止するには、以下のコマンドを実行します。
# /etc/init.d/postfix stop |
Turbolinux 11 Server の起動時に Postfix を自動的に開始するには、以下のように chkconfig コマンドを実行しておきます。
# chkconfig postfix on |
Postfix の設定ファイルを変更した場合は、変更を反映するために Postfix を再起動します。
# /etc/init.d/postfix restart |