linux APACHE2.2.10源码安装服务自动启动脚本
#!/bin/bash#chkconfig: 35 85 15
#description:Apache is a World Wide Web server.
case "$1" in
start)
echo "Starting Apache daemon..."
/data/apache2/bin/apachectl -k start
;;
stop)
echo "Stopping Apache daemon..."
/data/apache2/bin/apachectl -k stop
;;
restart)
echo "Restarting Apache daemon..."
/data/apache2/bin/apachectl -k restart
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
---------------
以在httpd 2.2.10 RHEL5.1 上测试通过
页:
[1]