>> Read Reply from No. 0 article  
RE: RE: RE: 리눅스프로그램 키자마자 시작되도록..

등록 2001-03-05 22:57:00     조회 2
이름 꼼생꼰사    

		apache rpm 패키지 에 포함된
/etc/rc.d/init.d/httpd 시작 스크립트입니다.
이게 여기 포함되는군요..
없으실테니 복사해두겠습니다.. /etc/init.d/httpd 내용입니다.
 #!/bin/sh
#
# Startup script for the Apache Web Server
#
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server.  It is used to serve
#              HTML files and CGI.
# processname: httpd
# pidfile: /var/run/httpd.pid
# config: /etc/httpd/conf/access.conf
# config: /etc/httpd/conf/httpd.conf
# config: /etc/httpd/conf/srm.conf
 # Source function library.
. /etc/rc.d/init.d/functions
 # Path to the httpd binary.
httpd=/usr/sbin/httpd
RETVAL=0
 # Until glibc's locale support is working right again, work around it.
LANG=C
 # Change the major functions into functions.
moduleargs() {
        moduledir=/usr/lib/apache
        moduleargs=
        for module in ${moduledir}/*.so ; do
                if [ -x ${module} ] ; then
                        module=`echo ${module} | awk '{
                                gsub(".*/","");
                                gsub("^mod_","");
                                gsub("^lib","");
                                gsub(".so$","");
                                print toupper($0)}'`
                        moduleargs="${moduleargs} -D HAVE_$module"
                fi
        done
        echo ${moduleargs}
}
start() {
        echo -n "Starting httpd: "
        daemon ${httpd} `moduleargs`
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
        return $RETVAL
}
stop() {
        echo -n "Shutting down http: "
        killproc httpd
        RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/httpd /var/run/httpd.pid
}
# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  status)
        status ${httpd}
        ;;
  restart)
        stop
        start
        ;;
  reload)
        echo -n "Reloading httpd: "
        killproc ${httpd} -HUP
        RETVAL=$?
        echo
        ;;
  condrestart)
        if [ -f /var/run/httpd.pid ] ; then
                stop
                start
        fi
        ;;
  *)
        echo "Usage:$0 {start|stop|restart|reload|condrestart|status}"
        exit 1
esac
 exit $RETVAL
이름
암호


>> 관련글
  답장 RE: RE: 리눅스프로그램 키자마자 시작되도록..  -_-  2001.03.05  ....
  답장 RE: RE: RE: 리눅스프로그램 키자마자 시작되도록..  꼼생꼰사  2001.03.05  ....
Register [ localhost 목록보기 윗글 아랫글
글쓰기
답장쓰기 수정 삭제
정규표현식 [ 상세 검색 ]
페이지로딩: [ 0.97 초 ] 작업시간: [ 0.6 초 ]

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved
[TOP]

적수네 동네
+
| 적수네 동네
| 공부방
| 리눅스 잡지 서고
| LSN 소스
| 링크 모음
+---+
게시판
+
| 떠들어보세!
| 질문과 답변
| 새소식과 정보
| 1원짜리 팁?
| 대화방
+---+
칼럼?
+
| 세하 훔쳐보기
| Welcome2nite
| 혜진의 염장판
+---+
리눅스 상표권
+
| 반대 서명란
| 토론 게시판
+---+
GNU
+
| GNU 선언문
| GNU GPL
| GNU 미러 목록
+---+
프로젝트?
+
| 리눅스카운터
| RC5DES
| 실질헌법 제작
+---+
커널 소식
+
| 안정 버젼: 2.4.14
+---+
테마 선택
+
LSN 방송국?
+
| OFF AIR
+---+
회원
+
| 로그인
+---+
[ 적수네 동네 ] [ 리눅스 상표권 독점 반대 ] [ 한글 리눅스 문서 프로젝트 ] [ KrLine ] [ 사랑넷 ] [ Valid HTML 4.0! ] [ SlashDot ] [ Freshmeat ]
Copyleft (C) 1998-2001 Byeong-Chan Kim . License
TIME: 1789610364
System by WYZsoft, HDD by I.O.Linux, Mizi Research, Embryo, WOWLINUX, Domain by SarangNet, Network by KrLine.