Last active
December 1, 2024 16:59
-
-
Save arkuznetsov/4791b4495ca2417abc0d972c03e3d265 to your computer and use it in GitHub Desktop.
1C win services registration
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
@echo off | |
set version=%1 | |
set regport=%241 | |
set port=%240 | |
set range=%260:%291 | |
set work_dir=C:\Program Files\1cv8\srvinfo%regport% | |
set srvc_name="1C:Enterprise 8.3 Server Agent (%regport%)" | |
set binpath="C:\Program Files\1cv8\%version%\bin\ragent.exe -srvc -agent -regport %regport% -port %port% -range %range% -debug -http -d \"%work_dir%\"" | |
set description="1C:Enterprise 8.3 Server Agent (%regport%)" | |
sc stop %srvc_name% | |
sc delete %srvc_name% | |
sc create %srvc_name% binPath= %binpath% start= auto displayname= %description% |
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
@echo off | |
set version=%1 | |
set port=%242 | |
set storage_path=d:\1CRepo | |
set srvc_name="1C:Enterprise 8.3 Configuration Repository Server (%port%)" | |
set binpath="C:\Program Files\1cv8\%version%\bin\crserver.exe -srvc -port %port% -d \"%storage_path%\"" | |
set description="1C:Enterprise 8.3 Configuration Repository Server (%port%)" | |
sc stop %srvc_name% | |
sc delete %srvc_name% | |
sc create %srvc_name% binPath= %binpath% start= auto displayname= %description% |
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
@echo off | |
set version=%1 | |
set address=127.0.0.1 | |
set port=%250 | |
set srvc_name="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)" | |
set binpath="C:\Program Files\1cv8\%version%\bin\dbgs.exe --service --addr=%address% --port=%port%" | |
set description="1C:Enterprise 8.3 Remote Debug Server (%address%:%port%)" | |
sc stop %srvc_name% | |
sc delete %srvc_name% | |
sc create %srvc_name% binPath= %binpath% start= auto displayname= %description% |
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
@echo off | |
set version=%1 | |
set port=%245 | |
set agent_address=127.0.0.1 | |
set agent_port=%240 | |
set srvc_name="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)" | |
set binpath="C:\Program Files\1cv8\%version%\bin\ras.exe cluster --service --port=%port% %agent_address%:%agent_port%" | |
set description="1C:Enterprise 8.3 Remote Administration Server (%port% -> %agent_address%:%agent_port%)" | |
sc stop %srvc_name% | |
sc delete %srvc_name% | |
sc create %srvc_name% binPath= %binpath% start= auto displayname= %description% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment