2010-12-23 2 views
1

bitten을 사용하여 지속적인 통합을 설정하는 중 일부로 Windows에서 일부 bitten-slave를 설정하려고합니다. 그러나 물린 문서에는 물린 슬레이브를 서비스로 등록하는 방법에 대한 지침이 없습니다.Windows 서비스로 bitten-slave를 추가하는 방법

sc create bitten-slave binPath= "C:\Python26\Scripts\bitten-slave.exe --verbose 
--log=C:\dev\bitten.log http://svn/cgi-bin/trac.cgi/builds" 

이 서비스는 참으로 만들었습니다 : How to create a Windows service by using Sc.exe에 마이크로 소프트의 문서를 보면

, 나는 다음과 같은 시도했습니다. 하지만 시작하려고 할 때 다음 오류가 발생합니다.

The bitten-slave service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

내가 뭘 잘못하고 있니?

답변

1

Windows에서 임의의 임의의 프로그램을 서비스로 실행할 수 없으면 응용 프로그램을 서비스 컨트롤러와 통신하려면 specially written이어야합니다.

An application that wants to be a service needs to first be written in such a way that it can handle start, stop, and pause messages from the Service Control Manager.

그러나 마이크로 소프트는 서비스로 임의의 프로그램을 실행하는 데 사용할 수있는 일반 서비스 래퍼, SRVANY을 제공한다. 서비스로 여러 개의 python 스크립트를 실행하기 위해 SRVANY를 사용하므로 제대로 작동해야합니다.

0

Bitten 위키의 This page은 Bitten 슬레이브가 계속 실행되도록 예약 된 작업으로 구성 할 수있는 간단한 Python 스크립트를 설명합니다.

관련 문제