|
- #!/bin/sh
- #
- # chkconfig: 345 85 15
- # description: Apache
- # function library.
- . /etc/init.d/functions
- # See how we were called.
- case "$1" in
- start)
- echo "Start apache........."
- /usr/local/apache2/bin/apachectl start
- ;;
- stop)
- echo "Stop apache........."
- /usr/local/apache2/bin/apachectl stop
- ;;
- restart)
- echo "Stop apache........."
- /usr/local/apache2/bin/apachectl stop
- sleep 3
- echo "Start apache........."
- /usr/local/apache2/bin/apachectl start
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart}"
- exit 1
- esac
复制代码 不知道问题出在哪,请指点一下,谢谢。 |
|