<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)

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 国产精品高清免费网站| 无码少妇一区二区浪潮免费| 日本一区免费电影| 亚洲一区二区三区丝袜| 久久精品女人天堂AV免费观看| 亚洲午夜电影在线观看| 性做久久久久久久免费看| 国产日本亚洲一区二区三区| xx视频在线永久免费观看| 亚洲国产美女精品久久| 在线天堂免费观看.WWW| 亚洲精品无码久久久久秋霞 | 亚洲国产成人久久精品影视| a毛片在线免费观看| 亚洲AV无码国产精品麻豆天美 | 国产亚洲中文日本不卡二区| 成人性生交视频免费观看| mm1313亚洲国产精品无码试看 | 免费看又黄又无码的网站| 亚洲自偷精品视频自拍| 成年私人影院免费视频网站| 国产亚洲精彩视频| 国产亚洲精品美女久久久| 91久久精品国产免费直播| 亚洲精品久久无码| 精品国产亚洲男女在线线电影 | 亚洲精品乱码久久久久久V | 亚洲熟妇AV日韩熟妇在线| 日韩亚洲精品福利| 国产精品99久久免费观看| 亚洲午夜国产精品无卡| 亚洲黄黄黄网站在线观看| 777成影片免费观看| 亚洲aⅴ无码专区在线观看春色| 亚洲精品tv久久久久久久久久| 久久国产精品2020免费m3u8| 久久久久久亚洲精品影院| 中文字幕亚洲无线码a| 国产妇乱子伦视频免费| 九九综合VA免费看| 亚洲国产午夜精品理论片|