Linux RHEL6 Starting Up and Shutting Down
Linux RHEL6 Starting Up and Shutting Down
#/etc/rc.d/init.d/saslauthd stop
#/etc/rc.d/init.d/sshd start
Enabling and disabling services
• chkconfig command for service management
• Syntax: chkconfig [option] service_name
Options:
a. --list [name]: Shows the status of the service at each runlevel
E.g. # chkconfig --list sshd
b. --add <name>: Adds a service to be managed by the chkconfig command
E.g. # chkconfig --add sshd
c. --del <name>: Removes a service from being managed by the chkconfig
command
E.g. # chkconfig --del sshd
d. --level <levels>: Enables or disables the service at the given levels
E.g. #chkconfig --level 4 sshd on
e. <name> <on|off|reset> Enables or disables the service at levels 2-5
E.g. #chkconfig sshd on
Contd..