apachectl.in revision db08da9ddcd65c31f9ea44b823898b72a1b24fbe
6511N/A# Copyright (c) 2000-2002 The Apache Software Foundation. 6511N/A# See license at the end of this file. 6511N/A# Apache control script designed to allow an easy command line interface 6511N/A# to controlling Apache. Written by Marc Slemko, 1997/08/23 6511N/A# The exit codes returned are: 6511N/A# 0 - operation completed successfully 6511N/A# 3 - httpd could not be started 6511N/A# 4 - httpd could not be stopped 6511N/A# 5 - httpd could not be started during a restart 6511N/A# 6 - httpd could not be restarted during a restart 6511N/A# 7 - httpd could not be restarted during a graceful restart 6511N/A# 8 - configuration syntax error 6511N/A# When multiple arguments are given, only the error from the _last_ 6511N/A# one is reported. Run "apachectl help" for usage info 6511N/A# |||||||||||||||||||| START CONFIGURATION SECTION |||||||||||||||||||| 6511N/A# -------------------- -------------------- 6511N/A# the path to your httpd binary, including options if necessary 6511N/A# pick up any necessary environment variables 6511N/A# a command that outputs a formatted text version of the HTML at the 6511N/A# url given on the command line. Designed for lynx, however other 6511N/A# the URL to your server's mod_status status page. If you do not 6511N/A# have one, then status and fullstatus will not work. 6511N/A# -------------------- -------------------- 6511N/A# |||||||||||||||||||| END CONFIGURATION SECTION |||||||||||||||||||| STATUS=
"@progname@ (no pid file) not running" echo "$0 $ARG: @progname@ (pid $PID) already running" echo "$0 $ARG: @progname@ started" echo "$0 $ARG: @progname@ could not be started" echo "$0 $ARG: @progname@ (pid $PID) already running" echo "$0 $ARG: @progname@ started" echo "$0 $ARG: @progname@ could not be started" echo "$0 $ARG: @progname@ stopped" echo "$0 $ARG: @progname@ could not be stopped" echo "$0 $ARG: @progname@ not running, trying to start" echo "$0 $ARG: @progname@ started" echo "$0 $ARG: @progname@ could not be started" echo "$0 $ARG: @progname@ restarted" echo "$0 $ARG: @progname@ could not be restarted" echo "$0 $ARG: configuration broken, ignoring restart" echo "$0 $ARG: (run 'apachectl configtest' for details)" echo "$0 $ARG: @progname@ not running, trying to start" echo "$0 $ARG: @progname@ started" echo "$0 $ARG: @progname@ could not be started" echo "$0 $ARG: @progname@ gracefully restarted" echo "$0 $ARG: @progname@ could not be restarted" echo "$0 $ARG: configuration broken, ignoring restart" echo "$0 $ARG: (run 'apachectl configtest' for details)" echo "usage: $0 (start|stop|restart|fullstatus|status|graceful|configtest|help)" startssl - start @progname@ with SSL enabled restart - restart @progname@ if running by sending a SIGHUP or start if fullstatus - dump a full status screen; requires lynx and mod_status enabled status - dump a short status screen; requires lynx and mod_status enabled graceful - do a graceful restart by sending a @AP_SIG_GRACEFUL@ or start if not running configtest - do a configuration syntax test # ==================================================================== # The Apache Software License, Version 1.1 # Copyright (c) 2000-2002 The Apache Software Foundation. All rights # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in # the documentation and/or other materials provided with the # 3. The end-user documentation included with the redistribution, # if any, must include the following acknowledgment: # "This product includes software developed by the # Alternately, this acknowledgment may appear in the software itself, # if and wherever such third-party acknowledgments normally appear. # 4. The names "Apache" and "Apache Software Foundation" must # not be used to endorse or promote products derived from this # software without prior written permission. For written # permission, please contact apache@apache.org. # 5. Products derived from this software may not be called "Apache", # nor may "Apache" appear in their name, without prior written # permission of the Apache Software Foundation. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR # ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # ==================================================================== # This software consists of voluntary contributions made by many # individuals on behalf of the Apache Software Foundation. For more # information on the Apache Software Foundation, please see # Portions of this software are based upon public domain software # originally written at the National Center for Supercomputing Applications, # University of Illinois, Urbana-Champaign.