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
- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Комментариев нет:
Отправить комментарий