diff options
| author | ivan <ivan> | 2004-10-26 12:43:07 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2004-10-26 12:43:07 +0000 |
| commit | a1a3dbf01df62e7689f9ab44e7deaa98f5882a96 (patch) | |
| tree | 931bea5a63e4c16ae5fd4ff40b0a1728b4d93305 /install/redhat/es3/httpd-init | |
| parent | 6f45285041c623b7f82c9d6461beec0d96d59250 (diff) | |
adding rh es3 files
Diffstat (limited to 'install/redhat/es3/httpd-init')
| -rw-r--r-- | install/redhat/es3/httpd-init | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/install/redhat/es3/httpd-init b/install/redhat/es3/httpd-init new file mode 100644 index 000000000..dca95cfdd --- /dev/null +++ b/install/redhat/es3/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 + |
