Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions sites/platform/src/create-apps/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,32 @@ allowing the container to be shut down and restarted.

To restart a worker manually, [access the container](#access-the-worker-container) and run the following commands:

{{< codetabs >}}

+++
title=Using ``systemctl``
+++

```bash
systemctl restart --user app
```

<--->
+++
title=Using `sv`
+++

```bash
sv stop app
sv start app
```

{{< note >}}
Use `systemctl` whenever possible. If you’re using `sv` command line, it’s worth upgrading to a [recent runtime version](/create-apps/app-reference/single-runtime-image.html#types) for better support.
{{< /note >}}

{{< /codetabs >}}

## Workers vs cron jobs

Worker instances don't run cron jobs.
Expand Down
22 changes: 22 additions & 0 deletions sites/upsun/src/create-apps/workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,33 @@ allowing the container to be shut down and restarted.

To restart a worker manually, [access the container](#access-the-worker-container) and run the following commands:


{{< codetabs >}}

+++
title=Using ``systemctl``
+++

```bash
systemctl restart --user app
```

<--->
+++
title=Using `sv`
+++

```bash
sv stop app
sv start app
```

{{< note >}}
Use `systemctl` whenever possible. If you’re using `sv` command line, it’s worth upgrading to a [recent runtime version](/create-apps/app-reference/single-runtime-image.html#types) for better support.
{{< /note >}}

{{< /codetabs >}}

## Workers vs cron jobs

Worker instances don't run cron jobs.
Expand Down
Loading