FlossDoc: 请协力 GPLv3 的中文翻译工作。
File:/etc/sysconfig/init
FlossDoc,自由中文開源知識庫
設定檔案 /etc/sysconfig/init 是包括 Fedora、RHEL 和 CentOS等 Red Hat 系 GNU/Linux 控制系統在啟動時如何表現和運作。
- BOOTUP=value - 設定開機時顯示啟動訊息的模式,可以為:
- color - 標準彩色顯示,Red Hat 6.0 開始使用的顯示模式,裝置和服務啟動時使用不同顏色標示啟動成功還是失敗。
- verbose - 舊方式顯示,除標示置和服務啟動成功與否,提供更詳細啟動資訊。
- 其他 - 新顯示,但沒有 ANSI 格式
- RES_COL=行號 - 設定在螢幕第幾行 (column) 開始顯示狀態標 (
[ OK ]),預設為 60。 - MOVE_TO_COL=termseq - 輸出令終端機跳至 RES_COL 指定行的 terminal sequence 的命令,一般為「
"echo -en \\033[${RES_COL}G"」。 - SETCOLOR_SUCCESS=termseq - 輸出令終端機使用成功狀態顏色的 terminal sequence 的命令 (一般為綠色),一般為「
"echo -en \\033[0;32m"」。 - SETCOLOR_FAILURE=termseq - 輸出令終端機使用失敗狀態顏色的 terminal sequence 的命令 (一般為紅色),一般為「
"echo -en \\033[0;31m"」。 - SETCOLOR_WARNING=termseq - 輸出令終端機使用警告狀態顏色的 terminal sequence 的命令 (一般為黃色),一般為「
"echo -en \\033[0;33m"」。 - SETCOLOR_NORMAL=termseq - 輸出令終端機使用正常顏色的 terminal sequence 的命令,一般為「
"echo -en \\033[0;39m"」。 - LOGLEVEL=記錄級別 - 設定內核在起始主控台記錄日誌的級別 (預設為 3)。這設定只在開機至啟動 syslogd 前才有效,syslogd 啟動後由 syslogd 管理。其值可以為:
- 1 (emergency, panic) 表示系統不能運作 (當機) 的級別,只在系統當機時才記錄。
- 2 (alert) 表示需要立即處理問題的級別
- 3 (crit) 表示緊級情況的級別 (預設級別)
- 4 (err, error) 表示有錯誤發生的級別 (不再使用這級別)
- 5 (warning, warn) 表示有警告的級別 (不再使用這級別)
- 6 (notice) 表示正常但需要注意的級別
- 7 (info) 表示一般資訊級別
- 8 (debug) 表示除蟲級別,會記錄所有訊息 (不包除蟲訊息)
- PROMPT=yes|no - 是否容許按【I】鍵啟動交互模式,no 為不容許,其他則容許。一般設定為容許。
- AUTOSWAP=yes|no - 是否偵察電腦所有置換分割區 (swap partition) 其自動使用。yes 為會自動使用,其他則不會。一般正常系統會設定為不會,LiveCD/LiveUSB 系統則會。
[编辑]
外部連結
- Comp Tech Doc Project: How Linux Works CTDP Guide Version 0.6.0. The /etc/sysconfig directory (2000-06-01)
- Red Hat Enterprise Linux (RHEL) Reference Guide on sysconfig directory:
- Red Hat Enterprise Linux 5 Deployment Guide, 3rd edition: Chapter 28. The sysconfig Directory (Michael Hideo Smith 2008-10)
- Red Hat Enterprise Linux Deployment Guide, revision 5.0.0-20: Chapter 27. The sysconfig Directory (Michael Hideo Smith 2008-10)
- Red Hat Enterprise Linux 4.5 Reference Guide, Edition 3.0: Chapter 4. The sysconfig Directory (2008)
- Red Hat Enterprise Linux 3 Reference Guide: Chapter 4. The sysconfig Directory (2003)
- Red Hat Linux Reference Guide on sysconfig directory:
- Red Hat Linux 9 Reference Guide: Chapter 4. The sysconfig Directory (2003)
- Red Hat Linux 8.0: The Official Red Hat Linux Reference Guide: The /etc/sysconfig/ Directory (2002)
- Red Hat Linux 7.3: The Official Red Hat Linux Reference Guide: Sysconfig Information (2002)
- Red Hat Linux 7.2: The Official Red Hat Linux Reference Guide: Sysconfig Information (2001)
- Red Hat Linux 7.1: The Official Red Hat Linux Reference Guide: Sysconfig Information (2001)
- Red Hat Linux 7.0: The Official Red Hat Linux Reference Guide: Sysconfig Information (2000)
- Red Hat Linux 6.2: The Official Red Hat Linux Reference Guide: Sysconfig Information (2000)
- Red Hat Linux 6.1: The Official Red Hat Linux Reference Guide: Sysconfig Information (1999)
- Red Hat Linux 6.0: The Official Red Hat Linux Installation Guide: 11.13.1 Sysconfig Information (1999)

