Set The Runlevel of a Service (Daemon) from the Command Line in Red Hat ES 5

To set the runlevel of a daemon (service) on the command line in Red Hat ES 5 (or CentOS 5, etc) you can use a simple command called chkconfig

To set a daemon to start on runlevels 2-5, which would be a "normal" start, you would use a command like this:

chkconfig --level 2345 *daemonname* on

And replace *daemonname* with the name of the daemon you want to have start, like httpd (Apache) or sendmail or any other daemon.

Share/Save/Bookmark

Advertisment

Comments

Leave a Reply