sudo vim /Library/LaunchDaemon/com.시작서비스명.plist

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
        "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.tomcat-5.5.launchd</string>
        <key>ProgramArguments</key>
        <array>
                <string>/Users/taehoonkoo/WorkSpace/severs/apache-tomcat-5.5.31/bin/startup.sh</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>

<string></string>의 값 부분은 실행 파일 path는 Machine의 설정에 따라서 바뀌어야 한다.
sudo chown root:wheel /Library/LaunchDaemon/com.시작서비스명.plist으로 소유권을 옮겨 주면, 다음 부팅 때 부터 자동 실행된다.

'CI 설정' 카테고리의 다른 글

간단 Hudson server 설정  (0) 2011.01.17
톰캣주소 : http://tomcat.apache.org
hudson주소 : http://hudson-ci.org

환경 세팅 : JAVA_HOME=JDK경로, CATALINA_HOME=TOMCAT경로

아래 방법은 webapp에 복사 없이 hudson context 추가하는 방식이다. 
1. hudson.war 전용 디렉토리를 생성한다
예 : /Users/사용자../Server/hudson/
2. hudson.war를 복사한다
3. tomcat이 설치된 디렉토리로 이동 후 conf/ 폴더로 이동한다
4.conf 디렉토리내 Catalina / localhost 로 이동한다
예 : ${tomcathome}/conf/Catalina/localhost
5. hudson.xml 을 생성한다 (vi hudson.xml)
6.xml 에 hudson의 Context정보를 입력한다.
<?xml version='1.0' encoding='utf-8'?>
<Context path="/hudson"   docBase=“…hudson.war 가 위치한 디렉토리…"   debug="0"   reloadable="true"   crossContext="true" />

7. tomcat를 재시작한다
8. http://localhost:8080/hudson 으로 접속하여 hudson을 확인한다

'CI 설정' 카테고리의 다른 글

OSx 시작 서비스 등록  (0) 2011.01.17

+ Recent posts