1.腳中必須有下的內容
# chkconfig: 2345 20 80
# description: Your script.
description \
# You can use \ add multi-line comment
如果沒有這兩行在chkconfigscriptnameon或chkconfig –addscriptname會報下的錯誤:
servicescriptnamedoes not
support chkconfig
2.關於# chkconfig: 2345
20 80
2345:腳本在那本啟動level運行,如果是any level,可以指定為-
20:系統啟動腳本運行優先順序
80:系統關閉腳本運行優先順序
沒有留言:
張貼留言