---
title: ServiceRestartType enum | Wartiva GraphQL API
description: Service restart type controlling how a service restarts after stopping. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/service-restart-type.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL enum

# `ServiceRestartType` enum

Service restart type controlling how a service restarts after stopping.

## Values

| Enum Value | Description |
|---|---|
| `NO` | The service does not restart. |
| `ON_SUCCESS` | The service restarts on success. |
| `ON_FAILURE` | The service restarts on failure. |
| `ON_ABNORMAL` | The service restarts on abnormal exit. |
| `ON_WATCHDOG` | The service restarts on watchdog timeout. |
| `ALWAYS` | The service always restarts. |
| `UNKNOWN` | The restart type is unknown. |

## Used by

- [`SystemService`](https://wartiva.com/api-docs/types/system-service.html) type: A background service or daemon configured on an Endpoint.

## Example

### Example

```json
"NO"

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
