Configure apachectl to use chkconfig

Add the following lines to /usr/local/apache2/bin/apachectl just after #!/bin/bash:

# chkconfig: - 85 15
# description: Apache is a World Wide Web server.  It is used to serve \
#              HTML files and CGI.

Then you can do:

ln -s /usr/local/apache2/bin/apachectl /etc/init.d/httpd
chkconfig --add httpd
chkconfig httpd on
service httpd start


CategoryLinux

ApachectlChkconfig (last edited 2008-08-12 09:40:31 by DavidKeen)