0
debian squeeze에서 자바 프로세스를 시작하기위한 init.d 스크립트가 있습니다. 내가 좋아하는 개미 개미 빌드에서이 스크립트를 호출하는 경우 :데비안에서 init.d 스크립트를 실행할 때 앤트 태스크가 멈춤
<target name="deploy-CdrServer-local">
<ant antfile="${CdrServer.location}/build.xml" target="deploy-local" inheritAll="false">
<property name="basedir" value="${CdrServer.location}" />
</ant>
<exec dir="/etc/init.d" spawn="false" executable="bash" newenvironment="false">
<arg line="cdrserver restart"/>
</exec>
</target>
스크립트는 다음과 같은 출력 후에 실행하지만, 개미 "중지"보다 : 나는 개미 다큐에서 본 적이
[copy] Copying 1 file to /opt/CdrServer
[copy] Copying 7 files to /opt/CdrServer/CdrServer_lib
[exec] Stopping CdrServer ...
[exec] CdrServer server process stopped
[exec] Starting CdrServer ...
[exec] cat $PIDFILE
[exec] CdrServer has PID: 24170
[exec]
[exec]
[exec] restarted CdrServer
[exec] exit 0
그 매개 변수로 inputstring = ""을 설정하면 도움이되지만 ... doesn ...
아이디어가 있으십니까?
init.d 스크립트는 일반적으로 root로 실행됩니다. 그게 문제가 될 수 있을까요? –
내 데모 환경에서 나는 또한 루트, 같은 문제로 개미를 실행합니다. – markus