winsw-frpc.xml
· 1.2 KiB · XML
Brut
<!--
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.
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/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>Frpc</id>
<!-- Display name of the service -->
<name>Frpc</name>
<!-- Service description -->
<description>Frp Client</description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\frpc.exe</executable>
<arguments> -c %BASE%\frpc.toml</arguments>
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\winsw-logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>10</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
</service>
| 1 | <!-- |
| 2 | This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. |
| 3 | |
| 4 | This configuration file should be placed near the WinSW executable, the name should be the same. |
| 5 | E.g. for myapp.exe the configuration file name should be myapp.xml |
| 6 | |
| 7 | You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 8 | Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 9 | --> |
| 10 | <service> |
| 11 | |
| 12 | <!-- ID of the service. It should be unique across the Windows system--> |
| 13 | <id>Frpc</id> |
| 14 | <!-- Display name of the service --> |
| 15 | <name>Frpc</name> |
| 16 | <!-- Service description --> |
| 17 | <description>Frp Client</description> |
| 18 | |
| 19 | <!-- Path to the executable, which should be started --> |
| 20 | <executable>%BASE%\frpc.exe</executable> |
| 21 | <arguments> -c %BASE%\frpc.toml</arguments> |
| 22 | |
| 23 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 24 | <logpath>%BASE%\winsw-logs</logpath> |
| 25 | <log mode="roll-by-size"> |
| 26 | <sizeThreshold>1024</sizeThreshold> |
| 27 | <keepFiles>10</keepFiles> |
| 28 | </log> |
| 29 | |
| 30 | <onfailure action="restart" delay="10 sec"/> |
| 31 | <onfailure action="restart" delay="20 sec"/> |
| 32 | <onfailure action="none" /> |
| 33 | |
| 34 | </service> |
winsw-gitea.xml
· 1.3 KiB · XML
Brut
<!--
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.
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/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>Gitea</id>
<!-- Display name of the service -->
<name>Gitea</name>
<!-- Service description -->
<description>Gitea Windows </description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\gitea-1.24.6-windows-4.0-amd64.exe</executable>
<arguments></arguments>
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\winsw-logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>10</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
</service>
| 1 | <!-- |
| 2 | This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. |
| 3 | |
| 4 | This configuration file should be placed near the WinSW executable, the name should be the same. |
| 5 | E.g. for myapp.exe the configuration file name should be myapp.xml |
| 6 | |
| 7 | You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 8 | Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 9 | --> |
| 10 | <service> |
| 11 | |
| 12 | <!-- ID of the service. It should be unique across the Windows system--> |
| 13 | <id>Gitea</id> |
| 14 | <!-- Display name of the service --> |
| 15 | <name>Gitea</name> |
| 16 | <!-- Service description --> |
| 17 | <description>Gitea Windows </description> |
| 18 | |
| 19 | <!-- Path to the executable, which should be started --> |
| 20 | <executable>%BASE%\gitea-1.24.6-windows-4.0-amd64.exe</executable> |
| 21 | <arguments></arguments> |
| 22 | |
| 23 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 24 | <logpath>%BASE%\winsw-logs</logpath> |
| 25 | <log mode="roll-by-size"> |
| 26 | <sizeThreshold>1024</sizeThreshold> |
| 27 | <keepFiles>10</keepFiles> |
| 28 | </log> |
| 29 | |
| 30 | <onfailure action="restart" delay="10 sec"/> |
| 31 | <onfailure action="restart" delay="20 sec"/> |
| 32 | <onfailure action="none" /> |
| 33 | |
| 34 | </service> |
winsw-gopeedweb.xml
· 1.2 KiB · XML
Brut
<!--
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.
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/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>GopeedWeb</id>
<!-- Display name of the service -->
<name>GopeedWeb</name>
<!-- Service description -->
<description>GopeedWeb</description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\gopeed.exe</executable>
<arguments></arguments>
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>4</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
</service>
| 1 | <!-- |
| 2 | This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. |
| 3 | |
| 4 | This configuration file should be placed near the WinSW executable, the name should be the same. |
| 5 | E.g. for myapp.exe the configuration file name should be myapp.xml |
| 6 | |
| 7 | You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 8 | Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 9 | --> |
| 10 | <service> |
| 11 | |
| 12 | <!-- ID of the service. It should be unique across the Windows system--> |
| 13 | <id>GopeedWeb</id> |
| 14 | <!-- Display name of the service --> |
| 15 | <name>GopeedWeb</name> |
| 16 | <!-- Service description --> |
| 17 | <description>GopeedWeb</description> |
| 18 | |
| 19 | <!-- Path to the executable, which should be started --> |
| 20 | <executable>%BASE%\gopeed.exe</executable> |
| 21 | <arguments></arguments> |
| 22 | |
| 23 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 24 | <logpath>%BASE%\logs</logpath> |
| 25 | <log mode="roll-by-size"> |
| 26 | <sizeThreshold>1024</sizeThreshold> |
| 27 | <keepFiles>4</keepFiles> |
| 28 | </log> |
| 29 | |
| 30 | <onfailure action="restart" delay="10 sec"/> |
| 31 | <onfailure action="restart" delay="20 sec"/> |
| 32 | <onfailure action="none" /> |
| 33 | |
| 34 | </service> |
winsw-minio.xml
· 1.8 KiB · XML
Brut
<!--
这是一个最小化的Windows服务包装器配置示例,仅包含必选项。
此配置文件应放置在WinSW可执行文件附近,且名称应相同。
例如,对于myapp.exe,配置文件名应为myapp.xml。
有关配置选项的更多信息,请访问: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
完整示例: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- 服务的唯一标识,不能与其他服务重复-->
<id>Minio</id>
<!-- 服务显示名称 -->
<name>Minio</name>
<!-- 服务描述 -->
<description>Minio Server RELEASE.2024-09-13T20-26-02Z (commit-id=5bf41aff1702adf2a11fa96a7b68f8651191e24d)</description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\minio.exe</executable>
<arguments>server filedata --address ":9000" --console-address ":9001"</arguments>
<!--
如果指定,则设置为可执行文件的默认工作目录。
默认值:服务可执行文件的目录。
-->
<workingdirectory>%BASE%</workingdirectory>
<!--
OPTION: env
设置或覆盖环境变量。
There may be multiple entries configured on the top level.
-->
<env name="MINIO_ROOT_USER" value="minioadmin" />
<env name="MINIO_ROOT_PASSWORD" value="minioadmin" />
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>4</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
<!-- 设置为“自动(延迟启动)”,避免开机时与其他服务争抢资源 -->
<delayedAutoStart>true</delayedAutoStart>
</service>
| 1 | <!-- |
| 2 | 这是一个最小化的Windows服务包装器配置示例,仅包含必选项。 |
| 3 | |
| 4 | 此配置文件应放置在WinSW可执行文件附近,且名称应相同。 |
| 5 | |
| 6 | 例如,对于myapp.exe,配置文件名应为myapp.xml。 |
| 7 | |
| 8 | 有关配置选项的更多信息,请访问: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 9 | 完整示例: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 10 | --> |
| 11 | <service> |
| 12 | |
| 13 | <!-- 服务的唯一标识,不能与其他服务重复--> |
| 14 | <id>Minio</id> |
| 15 | <!-- 服务显示名称 --> |
| 16 | <name>Minio</name> |
| 17 | <!-- 服务描述 --> |
| 18 | <description>Minio Server RELEASE.2024-09-13T20-26-02Z (commit-id=5bf41aff1702adf2a11fa96a7b68f8651191e24d)</description> |
| 19 | |
| 20 | <!-- Path to the executable, which should be started --> |
| 21 | <executable>%BASE%\minio.exe</executable> |
| 22 | <arguments>server filedata --address ":9000" --console-address ":9001"</arguments> |
| 23 | |
| 24 | <!-- |
| 25 | 如果指定,则设置为可执行文件的默认工作目录。 |
| 26 | 默认值:服务可执行文件的目录。 |
| 27 | --> |
| 28 | <workingdirectory>%BASE%</workingdirectory> |
| 29 | |
| 30 | <!-- |
| 31 | OPTION: env |
| 32 | 设置或覆盖环境变量。 |
| 33 | There may be multiple entries configured on the top level. |
| 34 | --> |
| 35 | <env name="MINIO_ROOT_USER" value="minioadmin" /> |
| 36 | <env name="MINIO_ROOT_PASSWORD" value="minioadmin" /> |
| 37 | |
| 38 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 39 | <logpath>%BASE%\logs</logpath> |
| 40 | <log mode="roll-by-size"> |
| 41 | <sizeThreshold>1024</sizeThreshold> |
| 42 | <keepFiles>4</keepFiles> |
| 43 | </log> |
| 44 | |
| 45 | <onfailure action="restart" delay="10 sec"/> |
| 46 | <onfailure action="restart" delay="20 sec"/> |
| 47 | <onfailure action="none" /> |
| 48 | |
| 49 | <!-- 设置为“自动(延迟启动)”,避免开机时与其他服务争抢资源 --> |
| 50 | <delayedAutoStart>true</delayedAutoStart> |
| 51 | |
| 52 | </service> |
| 53 |
winsw-nexus.xml
· 1.8 KiB · XML
Brut
<service>
<!-- 服务的唯一标识符,建议与名称保持一致 -->
<id>nexus</id>
<!-- 服务显示名称,可自定义 -->
<name>Nexus Repository Manager</name>
<!-- 服务描述 -->
<description>Sonatype Nexus Repository Manager (wrapped by WinSW)</description>
<!-- 可执行文件路径:请替换为您的 Nexus 安装目录下的 nexus.exe -->
<executable>%BASE%\nexus.exe</executable>
<!-- 运行参数:/run 让 nexus.exe 以前台模式运行,便于服务管理 -->
<arguments>/run</arguments>
<!-- 工作目录:通常设为 nexus.exe 所在目录或 Nexus 安装根目录 -->
<workingdirectory>%BASE%</workingdirectory>
<!-- 服务启动模式:Automatic(自动启动),也可设为 Manual 或 Disabled -->
<startmode>Automatic</startmode>
<!-- 是否延迟自动启动,默认 false -->
<delayedAutoStart>true</delayedAutoStart>
<!-- 服务依赖项(可选),例如依赖数据库服务,留空表示无依赖 -->
<depend></depend>
<!-- 日志输出目录,请替换为实际路径 -->
<logpath>%BASE%\logs</logpath>
<!-- 日志滚动模式:rotate(按日期/大小滚动),也可设为 append(单一文件追加)或 none(不记录) -->
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>10</keepFiles>
</log>
<!-- 可选:指定服务登录账户,若不需要可删除此块或留空 -->
<!--
<serviceaccount>
<domain>YOUR_DOMAIN</domain>
<user>YOUR_USER</user>
<password>YOUR_PASSWORD</password>
</serviceaccount>
-->
<!-- 可选:环境变量设置,例如若 Nexus 需要特定的 JAVA_HOME,可在此指定 -->
<!--
<env name="JAVA_HOME" value="C:\Program Files\Java\jdk1.8.0_201"/>
<env name="NEXUS_HOME" value="C:\Program Files\sonatype\nexus"/>
-->
</service>
| 1 | <service> |
| 2 | <!-- 服务的唯一标识符,建议与名称保持一致 --> |
| 3 | <id>nexus</id> |
| 4 | <!-- 服务显示名称,可自定义 --> |
| 5 | <name>Nexus Repository Manager</name> |
| 6 | <!-- 服务描述 --> |
| 7 | <description>Sonatype Nexus Repository Manager (wrapped by WinSW)</description> |
| 8 | |
| 9 | <!-- 可执行文件路径:请替换为您的 Nexus 安装目录下的 nexus.exe --> |
| 10 | <executable>%BASE%\nexus.exe</executable> |
| 11 | <!-- 运行参数:/run 让 nexus.exe 以前台模式运行,便于服务管理 --> |
| 12 | <arguments>/run</arguments> |
| 13 | |
| 14 | <!-- 工作目录:通常设为 nexus.exe 所在目录或 Nexus 安装根目录 --> |
| 15 | <workingdirectory>%BASE%</workingdirectory> |
| 16 | |
| 17 | <!-- 服务启动模式:Automatic(自动启动),也可设为 Manual 或 Disabled --> |
| 18 | <startmode>Automatic</startmode> |
| 19 | <!-- 是否延迟自动启动,默认 false --> |
| 20 | <delayedAutoStart>true</delayedAutoStart> |
| 21 | |
| 22 | <!-- 服务依赖项(可选),例如依赖数据库服务,留空表示无依赖 --> |
| 23 | <depend></depend> |
| 24 | |
| 25 | <!-- 日志输出目录,请替换为实际路径 --> |
| 26 | <logpath>%BASE%\logs</logpath> |
| 27 | <!-- 日志滚动模式:rotate(按日期/大小滚动),也可设为 append(单一文件追加)或 none(不记录) --> |
| 28 | |
| 29 | <log mode="roll-by-size"> |
| 30 | <sizeThreshold>1024</sizeThreshold> |
| 31 | <keepFiles>10</keepFiles> |
| 32 | </log> |
| 33 | |
| 34 | <!-- 可选:指定服务登录账户,若不需要可删除此块或留空 --> |
| 35 | <!-- |
| 36 | <serviceaccount> |
| 37 | <domain>YOUR_DOMAIN</domain> |
| 38 | <user>YOUR_USER</user> |
| 39 | <password>YOUR_PASSWORD</password> |
| 40 | </serviceaccount> |
| 41 | --> |
| 42 | |
| 43 | <!-- 可选:环境变量设置,例如若 Nexus 需要特定的 JAVA_HOME,可在此指定 --> |
| 44 | <!-- |
| 45 | <env name="JAVA_HOME" value="C:\Program Files\Java\jdk1.8.0_201"/> |
| 46 | <env name="NEXUS_HOME" value="C:\Program Files\sonatype\nexus"/> |
| 47 | --> |
| 48 | </service> |
winsw-nginx.xml
· 1.2 KiB · XML
Brut
<!--
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.
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/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>Nginx</id>
<!-- Display name of the service -->
<name>Nginx</name>
<!-- Service description -->
<description>Nginx 1.22.1 </description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\nginx.exe</executable>
<arguments></arguments>
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>4</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
</service>
| 1 | <!-- |
| 2 | This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. |
| 3 | |
| 4 | This configuration file should be placed near the WinSW executable, the name should be the same. |
| 5 | E.g. for myapp.exe the configuration file name should be myapp.xml |
| 6 | |
| 7 | You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 8 | Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 9 | --> |
| 10 | <service> |
| 11 | |
| 12 | <!-- ID of the service. It should be unique across the Windows system--> |
| 13 | <id>Nginx</id> |
| 14 | <!-- Display name of the service --> |
| 15 | <name>Nginx</name> |
| 16 | <!-- Service description --> |
| 17 | <description>Nginx 1.22.1 </description> |
| 18 | |
| 19 | <!-- Path to the executable, which should be started --> |
| 20 | <executable>%BASE%\nginx.exe</executable> |
| 21 | <arguments></arguments> |
| 22 | |
| 23 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 24 | <logpath>%BASE%\logs</logpath> |
| 25 | <log mode="roll-by-size"> |
| 26 | <sizeThreshold>1024</sizeThreshold> |
| 27 | <keepFiles>4</keepFiles> |
| 28 | </log> |
| 29 | |
| 30 | <onfailure action="restart" delay="10 sec"/> |
| 31 | <onfailure action="restart" delay="20 sec"/> |
| 32 | <onfailure action="none" /> |
| 33 | |
| 34 | </service> |
winsw-stashapp.xml
· 1.2 KiB · XML
Brut
<!--
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.
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/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
-->
<service>
<!-- ID of the service. It should be unique across the Windows system-->
<id>Stash</id>
<!-- Display name of the service -->
<name>Stash</name>
<!-- Service description -->
<description>Stash v0.28.1</description>
<!-- Path to the executable, which should be started -->
<executable>%BASE%\stash-win-v0.28.1.exe</executable>
<arguments></arguments>
<!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md -->
<logpath>%BASE%\logs</logpath>
<log mode="roll-by-size">
<sizeThreshold>1024</sizeThreshold>
<keepFiles>4</keepFiles>
</log>
<onfailure action="restart" delay="10 sec"/>
<onfailure action="restart" delay="20 sec"/>
<onfailure action="none" />
</service>
| 1 | <!-- |
| 2 | This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options. |
| 3 | |
| 4 | This configuration file should be placed near the WinSW executable, the name should be the same. |
| 5 | E.g. for myapp.exe the configuration file name should be myapp.xml |
| 6 | |
| 7 | You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md |
| 8 | Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml |
| 9 | --> |
| 10 | <service> |
| 11 | |
| 12 | <!-- ID of the service. It should be unique across the Windows system--> |
| 13 | <id>Stash</id> |
| 14 | <!-- Display name of the service --> |
| 15 | <name>Stash</name> |
| 16 | <!-- Service description --> |
| 17 | <description>Stash v0.28.1</description> |
| 18 | |
| 19 | <!-- Path to the executable, which should be started --> |
| 20 | <executable>%BASE%\stash-win-v0.28.1.exe</executable> |
| 21 | <arguments></arguments> |
| 22 | |
| 23 | <!-- https://github.com/winsw/winsw/blob/master/doc/loggingAndErrorReporting.md --> |
| 24 | <logpath>%BASE%\logs</logpath> |
| 25 | <log mode="roll-by-size"> |
| 26 | <sizeThreshold>1024</sizeThreshold> |
| 27 | <keepFiles>4</keepFiles> |
| 28 | </log> |
| 29 | |
| 30 | <onfailure action="restart" delay="10 sec"/> |
| 31 | <onfailure action="restart" delay="20 sec"/> |
| 32 | <onfailure action="none" /> |
| 33 | |
| 34 | </service> |