คำว่า level คือระดับในการเปิดเครื่อง ดูได้จากแฟ้ม /etc/inittab โดยโปรแกรมต่าง ๆ ที่สั่งให้ประมวลผล สามารถเลือกให้ทำงานใน level ใดได้ หากสั่งให้ประมวลผลปิด level เมื่อมีการ start linux ใน level หนึ่ง โปรแกรมที่คิดว่าสั่งให้ทำงานขณะเปิดเครื่อง ก็จะไม่ทำงาน
# /etc/inittab
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#id:5:initdefault:
id:3:initdefault:
ตัวอย่างคำสั่ง และการใช้งาน
#/sbin/chkconfig --add mysql | สั่งให้เพิ่ม mysql เข้าไปในระบบ system services |
#/sbin/chkconfig --list | แสดงรายการโปรแกรมทั้งหมด ที่สั่งให้ทำงานใน level ต่าง ๆ |
#/sbin/chkconfig --level 3 sendmail on | สั่งโปรแกรม sendmail ทำงานใน level 3 (Text mode) |
#/sbin/chkconfig --level 5 sendmail on | สั่งโปรแกรม sendmail ทำงานใน level 5 (X Windows) |
|