サービス制御

制御コマンド

Redhat系

 chkconfig

Debian系

 sysv-rc-conf

標準インストールされない場合があるので、なければapt-get install sysv-rc-confでインストールする。

chkconfig rcスクリプト

 #!/bin/sh
 #
 # Foo Startup script for the Foo
 #
 # Starts the test daemon(test version)
 #
 # chkconfig: 345 99 15
 # description: Foo is bar. It is user for Baz
  • chkconfig:行とdescription:行が必須。
  • chkfonfig: 起動するランレベル(345) 起動時の優先順位(99) 停止時の優先順位(15)

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2012-04-03 (火) 17:38:32