Remove trailing spaces

pull/608/head
NextTurn 2020-07-29 00:00:00 +08:00
parent e459165281
commit 2a5db3d7bb
No known key found for this signature in database
GPG Key ID: 17A0D50ADDE1A0C4
3 changed files with 42 additions and 42 deletions

View File

@ -27,16 +27,16 @@
This is a sample configuration of the Windows Service Wrapper. This is a sample configuration of the Windows Service Wrapper.
This configuration file should be placed near the WinSW executable, the name should be the same. This configuration file should be placed near the WinSW executable, the name should be the same.
E.g. for myapp.exe the configuration file name should be myapp.xml E.g. for myapp.exe the configuration file name should be myapp.xml
You can find more information about configuration options here: https://github.com/winsw/winsw/blob/master/docs/xml-config-file.md You can find more information about configuration options here: https://github.com/winsw/winsw/blob/master/docs/xml-config-file.md
--> -->
<service> <service>
<!-- <!--
SECTION: Mandatory options SECTION: Mandatory options
All options in other sections are optional All options in other sections are optional
--> -->
<!-- ID of the service. It should be unique accross the Windows system--> <!-- ID of the service. It should be unique accross the Windows system-->
<id>myapp</id> <id>myapp</id>
@ -49,7 +49,7 @@ All options in other sections are optional
<!-- <!--
<description>This service is a service created from a sample configuration</description> <description>This service is a service created from a sample configuration</description>
--> -->
<!-- Path to the executable, which should be started --> <!-- Path to the executable, which should be started -->
<executable>%BASE%\myExecutable.exe</executable> <executable>%BASE%\myExecutable.exe</executable>
@ -71,7 +71,7 @@ Their modification will not take affect without the service re-installation.
<allowservicelogon>true</allowservicelogon> <allowservicelogon>true</allowservicelogon>
</serviceaccount> </serviceaccount>
--> -->
<!-- <!--
OPTION: onfailure OPTION: onfailure
Defines a sequence of actions, which should be performed if the managed executable fails. Defines a sequence of actions, which should be performed if the managed executable fails.
@ -82,7 +82,7 @@ Their modification will not take affect without the service re-installation.
<onfailure action="restart" delay="20 sec"/> <onfailure action="restart" delay="20 sec"/>
<onfailure action="reboot" /> <onfailure action="reboot" />
--> -->
<!-- <!--
OPTION: resetfailure OPTION: resetfailure
Time, after which the Windows service resets the failure status. Time, after which the Windows service resets the failure status.
@ -104,7 +104,7 @@ Their modification will not take affect without the service re-installation.
SECTION: Executable management SECTION: Executable management
--> -->
<!-- <!--
OPTION: arguments OPTION: arguments
Arguments, which should be passed to the executable Arguments, which should be passed to the executable
--> -->
@ -112,7 +112,7 @@ SECTION: Executable management
<arguments>-classpath c:\cygwin\home\kohsuke\ws\hello-world\out\production\hello-world test.Main</arguments> <arguments>-classpath c:\cygwin\home\kohsuke\ws\hello-world\out\production\hello-world test.Main</arguments>
--> -->
<!-- <!--
OPTION: startarguments OPTION: startarguments
Arguments, which should be passed to the executable when it starts Arguments, which should be passed to the executable when it starts
If specified, overrides 'arguments'. If specified, overrides 'arguments'.
@ -120,7 +120,7 @@ SECTION: Executable management
<!-- <!--
<startarguments></startarguments> <startarguments></startarguments>
--> -->
<!-- <!--
OPTION: workingdirectory OPTION: workingdirectory
If specified, sets the default working directory of the executable If specified, sets the default working directory of the executable
@ -129,7 +129,7 @@ SECTION: Executable management
<!-- <!--
<workingdirectory>C:\myApp\work</workingdirectory> <workingdirectory>C:\myApp\work</workingdirectory>
--> -->
<!-- <!--
OPTION: priority OPTION: priority
Desired process priority. Desired process priority.
@ -137,16 +137,16 @@ SECTION: Executable management
Default value: Normal Default value: Normal
--> -->
<priority>Normal</priority> <priority>Normal</priority>
<!-- <!--
OPTION: stoptimeout OPTION: stoptimeout
Time to wait for the service to gracefully shutdown the executable before we forcibly kill it Time to wait for the service to gracefully shutdown the executable before we forcibly kill it
Default value: 15 seconds Default value: 15 seconds
--> -->
<stoptimeout>15 sec</stoptimeout> <stoptimeout>15 sec</stoptimeout>
<!-- <!--
OPTION: stopexecutable OPTION: stopexecutable
Path to an optional executable, which performs shutdown of the service. Path to an optional executable, which performs shutdown of the service.
This executable will be used if and only if 'stoparguments' are specified. This executable will be used if and only if 'stoparguments' are specified.
@ -156,7 +156,7 @@ SECTION: Executable management
<stopexecutable>%BASE%\stop.exe</stopexecutable> <stopexecutable>%BASE%\stop.exe</stopexecutable>
--> -->
<!-- <!--
OPTION: stoparguments OPTION: stoparguments
Additional arguments, which should be passed to the stop executable during termination. Additional arguments, which should be passed to the stop executable during termination.
This OPTION also enables termination of the executable via stop executable This OPTION also enables termination of the executable via stop executable
@ -164,8 +164,8 @@ SECTION: Executable management
<!-- <!--
<stoparguments>-stop true</stoparguments> <stoparguments>-stop true</stoparguments>
--> -->
<!-- <!--
SECTION: Service management SECTION: Service management
--> -->
<!-- <!--
OPTION: startmode OPTION: startmode
@ -174,15 +174,15 @@ SECTION: Service management
Default mode: Automatic Default mode: Automatic
--> -->
<startmode>Automatic</startmode> <startmode>Automatic</startmode>
<!-- <!--
OPTION: delayedAutoStart OPTION: delayedAutoStart
Enables the Delayed Automatic Start if 'Automatic' is specified in the 'startmode' field. Enables the Delayed Automatic Start if 'Automatic' is specified in the 'startmode' field.
See the WinSW documentation to get info about supported platform versions and limitations. See the WinSW documentation to get info about supported platform versions and limitations.
--> -->
<!--<delayedAutoStart>true</delayedAutoStart>--> <!--<delayedAutoStart>true</delayedAutoStart>-->
<!-- <!--
OPTION: depend OPTION: depend
Optionally specifies services that must start before this service starts. Optionally specifies services that must start before this service starts.
--> -->
@ -190,7 +190,7 @@ SECTION: Service management
<depend>Eventlog</depend> <depend>Eventlog</depend>
<depend>W32Time</depend> <depend>W32Time</depend>
--> -->
<!-- <!--
OPTION: interactive OPTION: interactive
Indicates the service can interactwith the desktop. Indicates the service can interactwith the desktop.
@ -198,9 +198,9 @@ SECTION: Service management
<!-- <!--
<interactive>true</interactive> <interactive>true</interactive>
--> -->
<!-- <!--
SECTION:Logging SECTION:Logging
--> -->
<!-- <!--
@ -211,7 +211,7 @@ SECTION:Logging
<!-- <!--
<logpath>%BASE%\logs</logpath> <logpath>%BASE%\logs</logpath>
--> -->
<!-- <!--
OPTION: log OPTION: log
Defines logging mode for logs produced by the executable. Defines logging mode for logs produced by the executable.
@ -223,8 +223,8 @@ SECTION:Logging
* roll-by-time - Roll logs based on time * roll-by-time - Roll logs based on time
* rotate - Rotate logs based on size, (8 logs, 10MB each). This mode is deprecated, use "roll" * rotate - Rotate logs based on size, (8 logs, 10MB each). This mode is deprecated, use "roll"
Default mode: append Default mode: append
Each mode has different settings. Each mode has different settings.
See https://github.com/winsw/winsw/blob/master/docs/logging-and-error-reporting.md for more details See https://github.com/winsw/winsw/blob/master/docs/logging-and-error-reporting.md for more details
--> -->
<log mode="append"> <log mode="append">
@ -233,7 +233,7 @@ SECTION:Logging
<setting2/> <setting2/>
--> -->
</log> </log>
<!-- <!--
SECTION: Environment setup SECTION: Environment setup
--> -->
@ -254,7 +254,7 @@ SECTION: Environment setup
--> -->
<!-- <!--
<download from="http://www.google.com/" to="%BASE%\index.html" /> <download from="http://www.google.com/" to="%BASE%\index.html" />
Download and fail the service startup on Error: Download and fail the service startup on Error:
<download from="http://www.nosuchhostexists.com/" to="%BASE%\dummy.html" failOnError="true"/> <download from="http://www.nosuchhostexists.com/" to="%BASE%\dummy.html" failOnError="true"/>
@ -267,15 +267,15 @@ SECTION: Environment setup
<download from="https://example.com/some.dat" to="%BASE%\some.dat" <download from="https://example.com/some.dat" to="%BASE%\some.dat"
auth="basic" username="aUser" password="aPassw0rd" /> auth="basic" username="aUser" password="aPassw0rd" />
Secure authentication when the target server and the client are members of the same domain or Secure authentication when the target server and the client are members of the same domain or
the server domain and the client domain belong to the same forest with a trust: the server domain and the client domain belong to the same forest with a trust:
<download from="https://example.com/some.dat" to="%BASE%\some.dat" auth="sspi" /> <download from="https://example.com/some.dat" to="%BASE%\some.dat" auth="sspi" />
--> -->
<!-- <!--
SECTION: Other options SECTION: Other options
--> -->
<!-- <!--
OPTION: beeponshutdown OPTION: beeponshutdown
Indicates the service should beep when finished on shutdown (if it's supported by OS). Indicates the service should beep when finished on shutdown (if it's supported by OS).
@ -283,7 +283,7 @@ SECTION: Other options
<!-- <!--
<beeponshutdown>true</beeponshutdown> <beeponshutdown>true</beeponshutdown>
--> -->
<!-- <!--
SECTION: Extensions SECTION: Extensions
This configuration section allows specifying custom extensions. This configuration section allows specifying custom extensions.

View File

@ -25,18 +25,18 @@
<!-- <!--
This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options.
This configuration file should be placed near the WinSW executable, the name should be the same. This configuration file should be placed near the WinSW executable, the name should be the same.
E.g. for myapp.exe the configuration file name should be myapp.xml E.g. for myapp.exe the configuration file name should be myapp.xml
You can find more information about the configuration options here: https://github.com/winsw/winsw/blob/master/docs/xml-config-file.md You can find more information about the configuration options here: https://github.com/winsw/winsw/blob/master/docs/xml-config-file.md
Full example: https://github.com/winsw/winsw/blob/master/samples/sample-complete.xml Full example: https://github.com/winsw/winsw/blob/master/samples/sample-complete.xml
--> -->
<service> <service>
<!-- ID of the service. It should be unique across the Windows system--> <!-- ID of the service. It should be unique across the Windows system-->
<id>myapp</id> <id>myapp</id>
<!-- Path to the executable, which should be started --> <!-- Path to the executable, which should be started -->
<!-- CAUTION: Don't put arguments here. Use <arguments> instead. --> <!-- CAUTION: Don't put arguments here. Use <arguments> instead. -->
<executable>%BASE%\myExecutable.exe</executable> <executable>%BASE%\myExecutable.exe</executable>

View File

@ -17,7 +17,7 @@ namespace WinSW.Tests
private const string AllowServiceAccountLogonRight = "true"; private const string AllowServiceAccountLogonRight = "true";
private readonly ITestOutputHelper output; private readonly ITestOutputHelper output;
private XmlServiceConfig extendedServiceConfig; private XmlServiceConfig extendedServiceConfig;
public ServiceConfigTests(ITestOutputHelper output) public ServiceConfigTests(ITestOutputHelper output)