summaryrefslogtreecommitdiff
path: root/install/centos/3/httpd-init
diff options
context:
space:
mode:
authorivan <ivan>2005-02-16 22:06:05 +0000
committerivan <ivan>2005-02-16 22:06:05 +0000
commitbf122a93c9665f7d5c8f680199adc8db99f36d57 (patch)
tree3220cfad1660f15169d0d685a931344e65ebe95a /install/centos/3/httpd-init
parentab4c00e3ac47611b00127418195c93dc095b85f5 (diff)
centos install notes, basically like rhell
Diffstat (limited to 'install/centos/3/httpd-init')
-rw-r--r--install/centos/3/httpd-init50
1 files changed, 50 insertions, 0 deletions
diff --git a/install/centos/3/httpd-init b/install/centos/3/httpd-init
new file mode 100644
index 000000000..dca95cfdd
--- /dev/null
+++ b/install/centos/3/httpd-init
@@ -0,0 +1,50 @@
+#!/bin/bash
+#
+# Startup script for the Apache Web Server
+#
+# chkconfig: - 85 15
+# description: Apache is a World Wide Web server. It is used to serve \
+# HTML files and CGI.
+# processname: httpd
+# Source function library.
+
+# Path to the apachectl script, server binary, and short-form for messages.
+apachectl=/usr/local/apache/bin/apachectl
+prog=httpd
+RETVAL=0
+
+start() {
+ echo -n $"Starting $prog: "
+ $apachectl startssl
+ RETVAL=$?
+}
+stop() {
+ echo -n $"Stopping $prog: "
+ $apachectl stop
+ RETVAL=$?
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
+ ;;
+ restart)
+ stop
+ sleep 3
+ start
+ ;;
+ graceful|help|configtest)
+ $apachectl $@
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $prog {start|stop|restart|graceful|help|configtest}"
+ exit 1
+esac
+
+exit $RETVAL
+