Red Hat/Debian/Gentoo Startup Commands

Since there are so many similarities and differences between Linux distributions, I put together this quick summary of the differences between the startup commands on a few of the popular distros (Red Hat, Debian/Ubuntu, and Gentoo):

The commands:

Red Hat: chkconfig
Debian: update-rc.d
Gentoo: rc-update

Start on bootup using the defaults:

chkconfig --add foobar
chkconfig foobar on

update-rc.d foobar defaults

rc-update add foobar default

Explicitly setting run levels (the 30/70 below are the sequence numbers):

chkconfig --level 2345 foobar on
chkconfig --level 016 foobar off

update-rc.d foobar start 30 2 3 4 5 . stop 70 0 1 6 .

Disabling/removing a service:

chkconfig foobar off
chkconfig --del foobar

update-rc.d foobar stop 20 2 3 4 5 .
update-rc.d -f foobar remove

rc-update del foobar

List current settings (no Debian version):

chkconfig --list foobar

rc-status --all





Please VOTE for this page at: ADD TO DEL.ICIO.US | ADD TO DIGG | ADD TO FURL | ADD TO NEWSVINE | ADD TO NETSCAPE | ADD TO REDDIT | ADD TO STUMBLEUPON | ADD TO TECHNORATI FAVORITES | ADD TO SQUIDOO | ADD TO WINDOWS LIVE | ADD TO YAHOO MYWEB | ADD TO ASK | ADD TO GOOGLE


2 Comments


  1. To view startup commands for debian, you can always use:

    ls /etc/rc?.d/

    ;)

    Posted July 27, 2007, 8:21 pm

  2. Good point, the majority of Linux distributions use the SYS V file system of /etc/rcX.d/ and can be manipulated and displayed directly from the file system.

    Posted July 27, 2007, 10:56 pm

Leave a reply