<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    jojo's blog--快樂憂傷都與你同在
    為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
    posts - 11,  comments - 30,  trackbacks - 0
    #!/bin/bash
    #
    # httpd        Startup script for the Apache HTTP Server
    #
    # chkconfig: 345 85 15
    # description: Apache is a World Wide Web server.  It is used to serve "
    #              HTML files and CGI.
    # processname: httpd
    # config: /usr/local/site/apache/conf/httpd.conf
    # config: /etc/sysconfig/httpd
    # pidfile: /usr/local/site/apache/logs/httpd.pid

    # Source function library.
    . /etc/rc.d/init.d/functions

    if [ -f /etc/sysconfig/httpd ]; then
            . /etc/sysconfig/httpd
    fi

    # Start httpd in the C locale by default.
    HTTPD_LANG=${HTTPD_LANG-"C"}

    # This will prevent initlog from swallowing up a pass-phrase prompt if
    # mod_ssl needs a pass-phrase from the user.
    INITLOG_ARGS=""

    # Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
    # with the thread-based "worker" MPM; BE WARNED that some modules may not
    # work correctly with a thread-based MPM; notably PHP will refuse to start.

    # Path to the apachectl script, server binary, and short-form for messages.
    apachectl=/usr/sbin/apachectl
    httpd=${HTTPD-/usr/local/site/apache/bin/httpd}
    prog=httpd
    pidfile=${PIDFILE-/usr/local/site/apache/logs/httpd.pid}
    lockfile=${LOCKFILE-/var/lock/subsys/httpd}
    RETVAL=0

    # check for 1.3 configuration
    check13 () {
            CONFFILE=/usr/local/site/apache/conf/httpd.conf
            GONE="(ServerType|BindAddress|Port|AddModule|ClearModuleList|"
            GONE="${GONE}AgentLog|RefererLog|RefererIgnore|FancyIndexing|"
            GONE="${GONE}AccessConfig|ResourceConfig)"
            if LANG=C grep -Eiq "^[[:space:]]*($GONE)" $CONFFILE; then
                    echo
                    echo 1>&2 " Apache 1.3 configuration directives found"
                    echo 1>&2 " please read /usr/share/doc/httpd-2.2.3/migration.html"
                    failure "Apache 1.3 config directives test"
                    echo
                    exit 1
            fi
    }

    # The semantics of these two functions differ from the way apachectl does
    # things -- attempting to start while running is a failure, and shutdown
    # when not running is also a failure.  So we just do it the way init scripts
    # are expected to behave here.
    start() {
            echo -n $"Starting $prog: "
            check13 || exit 1
            LANG=$HTTPD_LANG daemon $httpd $OPTIONS
            RETVAL=$?
            echo
            [ $RETVAL = 0 ] && touch ${lockfile}
            return $RETVAL
    }

    # When stopping httpd a delay of >10 second is required before SIGKILLing the
    # httpd parent; this gives enough time for the httpd parent to SIGKILL any
    # errant children.
    stop() {
            echo -n $"Stopping $prog: "
            killproc -d 10 $httpd
            RETVAL=$?
            echo
            [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
    }
    reload() {
        echo -n $"Reloading $prog: "
        if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
            RETVAL=$?
            echo $"not reloading due to configuration syntax error"
            failure $"not reloading $httpd due to configuration syntax error"
        else
            killproc $httpd -HUP
            RETVAL=$?
        fi
        echo
    }

    # See how we were called.
    case "$1" in
      start)
            start
            ;;
      stop)
            stop
            ;;
      status)
            status $httpd
            RETVAL=$?
            ;;
      restart)
            stop
            start
            ;;
      condrestart)
            if [ -f ${pidfile} ] ; then
                    stop
                    start
            fi
            ;;
      reload)
            reload
            ;;
      graceful|help|configtest|fullstatus)
            $apachectl $@
            RETVAL=$?
            ;;
      *)
            echo $"Usage: $prog {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}"
            exit 1
    esac

    exit $RETVAL

    posted on 2009-06-16 09:31 Blog of JoJo 閱讀(302) 評論(0)  編輯  收藏 所屬分類: 每日一記 、My Script

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(6)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 一级毛片a免费播放王色电影| 亚洲人成电影网站免费| 免费看黄的成人APP| 国产成人精品日本亚洲专区| 成人在线免费视频| 亚洲男同帅GAY片在线观看| 日韩免费在线视频| 亚洲系列国产精品制服丝袜第| 免费A级毛片无码视频| 亚洲黄色中文字幕| 三年片在线观看免费大全| 亚洲熟妇av午夜无码不卡| 国产成人高清精品免费鸭子| 日本永久免费a∨在线视频| 亚洲永久无码3D动漫一区| 国产免费一区二区三区在线观看| 亚洲国产女人aaa毛片在线| 无码国产精品一区二区免费虚拟VR| 国产精品高清视亚洲精品| 免费无码又爽又刺激毛片| 四虎精品成人免费视频| 亚洲欧洲日产国码无码久久99| 一级毛片免费不卡在线| 国产精品高清视亚洲精品| 亚洲精品国产V片在线观看| 免费黄色电影在线观看| 亚洲国产91在线| 国产成人精品久久亚洲高清不卡 国产成人精品久久亚洲 | 在线观看亚洲一区二区| 最新中文字幕免费视频| 日本一区二区三区免费高清在线| 亚洲AV乱码久久精品蜜桃 | 四虎精品免费永久免费视频| 亚洲AV无码一区二区二三区软件| 国产在线观看免费观看不卡| 羞羞的视频在线免费观看| 久久精品国产精品亚洲蜜月| 9久9久女女免费精品视频在线观看 | a级毛片毛片免费观看久潮喷| 亚洲女人影院想要爱| 亚洲国产精品一区二区三区久久|