<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视频精品免费观看| 一级黄色免费毛片| 最近2019免费中文字幕视频三| 亚洲午夜久久久影院| 久久国产乱子伦精品免费午夜| 精品亚洲一区二区三区在线播放| a毛片成人免费全部播放| 国产gv天堂亚洲国产gv刚刚碰| 99久久免费国产精品热| 亚洲AV一宅男色影视| 午夜视频在线免费观看| 亚洲国产成人久久77| 午夜一级免费视频| 牛牛在线精品观看免费正| 伊人久久大香线蕉亚洲五月天| 久9久9精品免费观看| 亚洲高清中文字幕| 在线中文高清资源免费观看| 高潮毛片无遮挡高清免费| 亚洲春色在线视频| 91精品免费在线观看| 狠狠综合亚洲综合亚洲色| 亚洲精品少妇30p| 青娱乐免费在线视频| 国产亚洲日韩在线a不卡| 久久精品国产精品亚洲下载| 一区二区免费视频| 亚洲精品伦理熟女国产一区二区| 亚洲免费福利视频| 波多野结衣久久高清免费| 久久久久国色AV免费观看| 亚洲国产成人资源在线软件| 亚洲精品第一国产综合境外资源 | 亚洲av无码专区在线观看素人| 中文字幕av无码不卡免费| 亚洲成a人不卡在线观看| 国产免费av一区二区三区| 免费91最新地址永久入口| 亚洲国产一区二区三区在线观看| 国产AⅤ无码专区亚洲AV| 亚洲人成电影网站免费|