# Process management

Use dokku to stop, start and restart the docker containers that host the website.

{% hint style="info" %}
Read more about [Dokku Process Management](https://dokku.com/docs/processes/process-management/).
{% endhint %}

To restart the website:

```
dokku ps:restart APP
```

To stop the website:

```
dokku ps:stop APP
```

To start the website after stopping it:

```
dokku ps:start APP
```

## Background tasks

Background tasks (such as updating the search index and ingesting content from remote sources) are run in a separate docker container.

Normally you only need one or two background task runners. If there are many tasks, you can increase the number of task runners to work through the tasks faster.

The number of background task runners does **not** impact the number of threads or processes serving the website.

For example, to scale up to 3 background task runners, use:

```
dokku ps:scale APP tasks=3
```

To scale back down to 1, use:

```
dokku ps:scale APP tasks=1
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://liieditors.docs.laws.africa/system-management/process-management.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
