# ServiceInfo

Import: `import com.install4j.api.ServiceInfo;`

```java
public class ServiceInfo
```

Provides information about services created with install4j.

## Methods

| Signature | Returns | Description |
|---|---|---|
| [`isServiceRunning(File)`](#isservicerunning-file) | `boolean` | Checks if a service is running. |
| [`isServiceInstalled(File)`](#isserviceinstalled-file) | `boolean` | Checks if a service is installed. |

### isServiceRunning(File)

```java
public static boolean isServiceRunning(File serviceFile)
```

Checks if a service is running.


**Parameters:**

- `serviceFile` — the install4j service executable

**Returns:** true if it is running

### isServiceInstalled(File)

```java
public static boolean isServiceInstalled(File serviceFile)
```

Checks if a service is installed.


**Parameters:**

- `serviceFile` — the install4j service executable

**Returns:** true if installed

## Constructors

| Signature | Description |
|---|---|
| [`ServiceInfo()`](#serviceinfo) |  |

### ServiceInfo()

```java
public ServiceInfo()
```

