From 6be15f62f3779be68496bfc1857b38ec31856154 Mon Sep 17 00:00:00 2001 From: Florent Huck Date: Tue, 25 Nov 2025 10:30:11 +0100 Subject: [PATCH 1/2] Workers: use SystemCTL to restart instead of sv --- sites/platform/src/create-apps/workers.md | 21 +++++++++++++++++++++ sites/upsun/src/create-apps/workers.md | 22 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/sites/platform/src/create-apps/workers.md b/sites/platform/src/create-apps/workers.md index c5e9664df4..28df17c9c1 100644 --- a/sites/platform/src/create-apps/workers.md +++ b/sites/platform/src/create-apps/workers.md @@ -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 in the `vs` section, 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. diff --git a/sites/upsun/src/create-apps/workers.md b/sites/upsun/src/create-apps/workers.md index 6084d55ade..01dc0e434a 100644 --- a/sites/upsun/src/create-apps/workers.md +++ b/sites/upsun/src/create-apps/workers.md @@ -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 in the `vs` section, 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. From 8e66057c451975981a0dbaa811b007f40dcdeffc Mon Sep 17 00:00:00 2001 From: Florent Huck Date: Tue, 25 Nov 2025 11:50:16 +0100 Subject: [PATCH 2/2] change SystemCTL to systemctl --- sites/platform/src/create-apps/workers.md | 2 +- sites/upsun/src/create-apps/workers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/platform/src/create-apps/workers.md b/sites/platform/src/create-apps/workers.md index 28df17c9c1..421bb4c6e1 100644 --- a/sites/platform/src/create-apps/workers.md +++ b/sites/platform/src/create-apps/workers.md @@ -35,7 +35,7 @@ To restart a worker manually, [access the container](#access-the-worker-containe {{< codetabs >}} +++ -title=Using SystemCTL +title=Using ``systemctl`` +++ ```bash diff --git a/sites/upsun/src/create-apps/workers.md b/sites/upsun/src/create-apps/workers.md index 01dc0e434a..d9f2d3a7e9 100644 --- a/sites/upsun/src/create-apps/workers.md +++ b/sites/upsun/src/create-apps/workers.md @@ -33,7 +33,7 @@ To restart a worker manually, [access the container](#access-the-worker-containe {{< codetabs >}} +++ -title=Using SystemCTL +title=Using ``systemctl`` +++ ```bash