---
title: "Manage TigerGraph services"
component: "tigergraph-server"
version: "4.3"
module: "system-management"
html_url: "/tigergraph-server/4.3/system-management/manage-services"
canonical_url: "https://www.tigergraph.com/docs/tigergraph-server/4.3/system-management/manage-services"
markdown_url: "https://www.tigergraph.com/docs/tigergraph-server/4.3/system-management/manage-services.md"
---

[View as HTML](https://www.tigergraph.com/docs/tigergraph-server/4.3/system-management/manage-services)

# Manage TigerGraph services

Although the end user accesses TigerGraph by running GSQL or accessing the GraphStudio GUI, TigerGraph is actually built on many more services than just those two alone. Each has its own function and can be started or stopped individually in the case of a problem with one part, though several services rely on one another.

Consult the [Glossary](https://www.tigergraph.com/docs/tigergraph-server/4.3/reference/glossary.md) for definitions of the TigerGraph services.

## Start, stop or restart a service

Use the command `gadmin start all` to start all the TigerGraph services. This is the first step when running a new TigerGraph instance. If you are using Docker, for example, you must run `gadmin start all` after starting the Docker container before you can use GSQL.

Use `gadmin stop`, `gadmin start` or `gadmin restart` with individual services such as GSQL, Kafka, or RESTPP to control them separate from the others.

The `restart` and `stop` commands prompt you for confirmation each time they are run. To avoid this, run the commands with the `-y` flag to bypass the confirmation.

Bypass confirmation with -y

```bash
gadmin restart gpe -y
gadmin stop all -y
gadmin start all
```

See the [GADMIN Commmand Glossary](https://www.tigergraph.com/docs/tigergraph-server/4.3/system-management/management-commands.md) for more details about `gadmin start`, `stop`, and `restart`.

### Graceful Shutdown of RESTPP

When stopping RESTPP by `gadmin stop restpp`, the RESTPP will wait until all ongoing requests are complete before the timeout. Any long-running queries will be discarded once `gadmin stop` command hits the timeout. The timeout is defined by the [Gadmin.StopServiceDefaultTimeoutMS configuration parameter](https://www.tigergraph.com/docs/tigergraph-server/4.3/reference/configuration-parameters.md#_gadmin) (200s by default). The `--timeout` flag of `gadmin stop` will override the value of the configuation parameter.

### Graceful Shutdown of GPE

When you stop GPE using `gadmin stop gpe`, the process waits for a specific duration to allow ongoing requests to complete gracefully. Any long-running queries will be discarded once the `gadmin stop` command hits the timeout. The timeout is defined by the [GPE.StopTimeoutMS configuration parameter](https://www.tigergraph.com/docs/tigergraph-server/4.3/reference/configuration-parameters.md#_gpe), which is **300 seconds (5 minutes) by default**.

The graceful shutdown period is set to half of the `GPE.StopTimeoutMS` value. This means after 2 minutes and 30 seconds, GPE is forcefully stopped, causing any incomplete queries to fail.

Additionally, the `gadmin stop` command has a `--timeout` flag that can override the value of the `GPE.StopTimeoutMS` configuration parameter.

Moreover, the 5s grace period can be adjusted by adding `ShutdownGracePeriodMs=<YOUR_CHOICE_OF_GRACE_PERIOD_MS>;` to the `GPE.BasicConfig.Env` parameter.

## Check service status

Use `gadmin status all` or `gadmin status` with an individual service to check its state. See [Service status definitions](https://www.tigergraph.com/docs/tigergraph-server/4.3/system-management/management-commands.md#_service_status_definitions) for detailed information on the returned results.
