how can stop and start a VisualSVN Server
via batch/console (windows) command?
My Setup:
VisualSVN Server 3.2 has 3 Windows services and each of them has to be stopped separatly:
VisualSVNServer
): HTTP service,vdfsscv
): the service provides multisite replication for Subversion repositories (the service not enabled by default),vrepocfgsvc
): the service provides Repository Management Delegation feature (the service not enabled by default).Some examples below.
Using VisualSVN Server's WMI provider (via PowerShell):
Start HTTP service:
$service = Get-CimInstance -Namespace root\VisualSVN -ClassName VisualSVN_Service -Filter "Name = 'VisualSVNServer'"
Invoke-CimMethod -InputObject $service -MethodName StartService
Stop HTTP service:
$service = Get-CimInstance -Namespace root\VisualSVN -ClassName VisualSVN_Service -Filter "Name = 'VisualSVNServer'"
Invoke-CimMethod -InputObject $service -MethodName StopService
Using SC.exe from cmd.exe
command prompt:
Stop VisualSVN Server's HTTP service: sc stop VisualSVNServer
,
Start VisualSVN Server's HTTP service: sc start VisualSVNServer
.