Friday, August 03, 2007

How to include a service during linux startup (REDHAT distro)?

chkconfig httpd on --level 235
chkconfig vsftpd on --level 235


Those two lines would add httpd(webserver) and vsftpd(ftp server) into startup script and enable them everytime you boot with run level 2, 3, or 5.

To list all services' status you can use
chkconfig --list
or
chkconfig --list for a specific service.

No comments: