提交 208606b6 编写于 作者: R roo00

增加windows服务启动脚本

上级 1786d92b
@echo off
if not "%1" == "install" ( if not "%1" == "uninstall" ( if not "%1" == "start" ( if not "%1" == "stop" (
echo usage: service_windows.bat install ^| uninstall ^| start ^| stop
echo depend Microsoft.NET Framework 4
goto out
))))
echo ^<configuration^> > %~dp0local\service.xml
echo ^<id^>o2server^<^/id^> >> %~dp0local\service.xml
echo ^<name^>o2server service^<^/name^> >> %~dp0local\service.xml
echo ^<description^>winsw warpper o2server service.^<^/description^> >> %~dp0local\service.xml
echo ^<executable^>%~dp0start_windows.bat^</executable^> >> %~dp0local\service.xml
echo ^<log mode="none"^/^> >> %~dp0local\service.xml
echo ^</configuration^> >> %~dp0local\service.xml
copy %~dp0commons\winsw.exe %~dp0local\service.exe
%~dp0local\service.exe %1
:out
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册