cd %~dp0
SET DKCMAN_HOME=%CD%\
cd ..\rmiserver\
SET RMISERVER_HOME=%CD%\
cd ..\JSanTools\
SET JSANTOOLS_HOME=%CD%\
cd ..\..\..\oss\java\
SET JAVA_HOME=%CD%
cd ..\..\
SET SVP_HOME=%CD%

call %DKCMAN_HOME%dkcman_uninstall.bat

%DKCMAN_HOME%DKCMan  ^
//IS//DKCMan  ^
--DisplayName="DKCMan"  ^
--Description="DKCManage Server Service" ^
--Install="%DKCMAN_HOME%DKCMan.exe"  ^
--Startup=auto ^
--LogPath=%DKCMAN_HOME%log	^
--LogPrefix="DKCMan"	^
--LogLevel=INFO ^
--StdOutput=auto ^
--StdError=auto ^
--JavaHome=%JAVA_HOME% ^
--Jvm=%JAVA_HOME%\bin\client\jvm.dll ^
--Classpath=%DKCMAN_HOME%DkcManServer.jar;%DKCMAN_HOME%lib\commons-compress-1.8.1.jar;%DKCMAN_HOME%lib\jna.jar;%DKCMAN_HOME%lib\log4j-1.2.17.jar;%RMISERVER_HOME%SanRmiApi.jar;%RMISERVER_HOME%JSanRmiApiUx.jar;%JSANTOOLS_HOME%\lib\JSanTools.jar;%JSANTOOLS_HOME%\lib\logback-classic-1.1.2.jar;%JSANTOOLS_HOME%\lib\logback-core-1.1.2.jar;%JSANTOOLS_HOME%\lib\slf4j-api-1.7.7.jar ^
--StartClass=sanproject.manage.server.DKCManServerMain ^
--StartMethod=start ^
--StartMode=jvm ^
--StopClass=sanproject.manage.server.DKCManServerMain ^
--StopMethod=stop ^
--StopMode=jvm  ^
++JvmOptions=-DSVP_HOME=%SVP_HOME%;-Djava.rmi.server.useCodebaseOnly=false ^

sc failure "DKCMan" reset= 0 actions= restart/5000/restart/5000/restart/5000

