現在、Fedora 14 Linuxインストールの/etc/init.d/にあるシステムプロセスで起動スクリプトを生成する方法を探しています。次の2行が最小限だと思いますか?
#!/bin/bash
# chkconfig: 345 85 15 (however on this one I've seen different combos)
この行の目的は何ですか?このようなファイルに対してこれらのヘッダー行やその他のヘッダー行をよりよく生成する方法を理解するのに役立つ良いリソースはありますか?
ベストアンサー1
文書ファイルを表示します /usr/share/doc/initscripts-*/sysvinitfiles
(現在F14、/usr/share/doc/initscripts-9.12.1/sysvinitfiles
)。ここにさらに多くの文書があります:http://fedoraproject.org/wiki/Packaging/SysVInitScript。
chkconfig行は、サービスがデフォルトで開始される実行レベル(存在する場合)と起動中の順序を定義します。
# chkconfig: <startlevellist> <startpriority> <endpriority>
Required. <startlevellist> is a list of levels in which
the service should be started by default. <startpriority>
and <endpriority> are priority numbers. For example:
# chkconfig: 2345 20 80
そして、これらすべての機能はFedora 15とsystemd
。