<!-- ID of the service. It should be unique across the Windows system--> <id>epcos-modules-system</id> <!-- Display name of the service --> <name>system-server</name> <!-- Service description --> <description>system 系统服务</description>
<!-- Path to the executable, which should be started --> <executable>java</executable> <arguments>-jar system.jar -Dsun.jnu.encoding=utf-8 -Dfile.encoding=utf-8 --spring.profiles.active=prod </arguments> <onfailure action="restart" delay="10 sec"/> <onfailure action="restart" delay="20 sec"/> <resetfailure>1 hour </resetfailure><!--OPTION: priorityDesired process priority.Possible values: Normal, Idle, High, RealTime, BelowNormal, AboveNormalDefault value: Normal--> <priority>Normal </priority><!-- OPTION: stoptimeoutTime to wait for the service to gracefully shutdown the executable before we forcibly kill itDefault value: 15 seconds--> <stoptimeout>15 sec </stoptimeout><!--OPTION: stopparentprocessfirstIf set, WinSW will terminate the parent process before stopping the children.Default value: false--> <stopparentprocessfirst>false </stopparentprocessfirst><!--OPTION: startmodeDefines start mode of the service.Supported modes: Automatic, Manual, Boot, System (latter ones are supported for driver services only)Default mode: Automatic--> <startmode>Automatic</startmode> <waithint>15 sec</waithint> <sleeptime>1 sec</sleeptime> <log mode="roll-by-size"> <sizeThreshold>10240</sizeThreshold> <keepFiles>8</keepFiles> </log>