步骤如下:
- gitlab下载windows版syncthing.
- 下载winsw,xml配置见下。
- winsw install即可。
<service> <id>syncthing</id> <name>syncthing</name> <description>syncthing</description> <executable>syncthing.exe</executable> <logpath>.\logs</logpath> <logmode>roll</logmode> <depend></depend> <!--<startargument>-c</startargument>--> </service>