Redhat, /etc/rc and /etc/init.d: chkconfig and service

When i get on a Redhat machine, I’m always trying to remember the commands to start and stop services and configure the /etc/rc*.d directories. Supposedly, if you just create your own links or remove your own links, the operating systems can revert your work. You should use the chkconfig command to enable and disable services. For example:

chkconfig mysqld on

The service command can be used to start or stop services.

service mysqld start

instead of the old

/etc/init.d/mysqld start

The service command is not too useful, but the chkconfig command is.

Comments are closed.