вторник, 8 ноября 2016 г.

Setup Syncthing as a service on Windows

To setup and start Syncthing as a service:
- download Syncthing, unpack
- download nssm.exe and put it into directory of syncthing
- put syncthing-svc-setup-win32.bat script into directory of syncthing
- run syncthing-svc-setup-win32.bat as Administrator
set appdir=%~dp0
cd %appdir%
@echo off
@setlocal
nssm.exe install Syncthing syncthing.exe -no-console -no-browser -home="c:\users\litvinov.a\AppData\Local\Syncthing"
nssm set Syncthing AppDirectory %appdir%
nssm.exe edit Syncthing
net start Syncthing
pause

Комментариев нет:

Отправить комментарий