# Service_WaitForStart

> Wait for specified service to start.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/service-functions/service-waitforstart/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Wait for specified service to start

### Syntax

Service_WaitForStart(sServiceName, iTimeOutInSec) As Boolean

### Parameters

#### sServiceName (String)

Name of service

#### iTimeOutInSec (Integer)

How many seconds to wait for service to start

### Example

**VBScript**

```vb
If bStatus Then bStatus = Service_WaitForStart("Service", 90)
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Service_Create](/capainstaller/vb-scripting-library/service-functions/service-create/) [Service_Exist](/capainstaller/vb-scripting-library/service-functions/service-exist/) [Service_SetStartMode](/capainstaller/vb-scripting-library/service-functions/service-setstartmode/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
