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

    隨筆檔案

    文章分類

    文章檔案

    新聞分類

    新聞檔案

    相冊

    收藏夾

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    主站蜘蛛池模板: 免免费国产AAAAA片| 四虎影视无码永久免费| 亚洲高清专区日韩精品| 美女黄频a美女大全免费皮| 卡1卡2卡3卡4卡5免费视频| 久久影视综合亚洲| 亚洲毛片在线观看| 亚洲女女女同性video| 久久受www免费人成_看片中文| 婷婷亚洲综合五月天小说| 无码午夜成人1000部免费视频| 拨牐拨牐x8免费| 亚洲国产精品网站在线播放| a级毛片无码免费真人久久| 国产精品亚洲综合专区片高清久久久| 免费在线人人电影网| 成人免费的性色视频| 亚洲一区在线免费观看| 曰批全过程免费视频在线观看无码| 亚洲男同帅GAY片在线观看| 久久亚洲精品专区蓝色区| 三年片免费高清版| 久久精品国产精品亚洲蜜月| 91成人在线免费视频| 亚洲国产成人久久综合一区| 成人激情免费视频| 亚洲AV综合色区无码一二三区| 免费无遮挡无码永久在线观看视频| 久久久久久亚洲Av无码精品专口| 麻豆国产精品免费视频| 亚洲色中文字幕无码AV| 国产高清不卡免费视频| 亚洲av无码片区一区二区三区| 永久免费av无码网站大全| 一级女人18片毛片免费视频| 国内大片在线免费看| 瑟瑟网站免费网站入口| 久久亚洲伊人中字综合精品| 久久久久久免费视频| 一级一片免费视频播放| 亚洲黄色在线观看|