Saturday, April 26, 2014

Enabling/Disabling startup services in linux


Redhat, CentOS

ADD a service (in this example vsftpd)
 
# chkconfig vsftpd --add
# chkconfig  vsftpd  on --level 2,3,5


REMOVE a service (in this example vsftpd)

# chkconfig  vsftpd  off 
# chkconfig vsftpd --del


The new process will be added to /etc/init.d and a softlink will be put in all the required /etc/rcX.d folders (X stands for the runlevel)

While to start and stop a service...

# service vsftpd start
# service vsftpd stop
 

All the info you are looking for are available here:
http://www.aboutlinux.info



No comments:

Post a Comment

Your comment will be visible after approval.