diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-06-05 13:52:13 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-06-12 02:58:55 +0000 |
| commit | 44bfc6144a8d4ebfc6e7fd02a667d69154a6b516 (patch) | |
| tree | 762caa7d59d6b6765449153237814487e2895167 | |
| parent | edfc302dbd43e8ca834224a778f8ab2e7fc168f0 (diff) | |
| download | meta-virtualization-44bfc6144a8d4ebfc6e7fd02a667d69154a6b516.tar.gz | |
incus: change service type from notify to simple
Incusd does not call sd_notify(READY=1) — the Go source has no
systemd notification support in the main daemon (only in incus-agent,
the guest-side component). With Type=notify, systemd waits indefinitely
for the ready notification and the service stays in 'activating' state
even though incusd is fully operational.
This was not caught before the v7 uprev because the previous build
was cached via sstate or the service was tested manually.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-containers/incus/files/incus.service | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/recipes-containers/incus/files/incus.service b/recipes-containers/incus/files/incus.service index 22f0eac6..12df9492 100644 --- a/recipes-containers/incus/files/incus.service +++ b/recipes-containers/incus/files/incus.service | |||
| @@ -1,12 +1,13 @@ | |||
| 1 | [Unit] | 1 | [Unit] |
| 2 | Description=Incus - Container and VM manager | 2 | Description=Incus - Container and VM manager |
| 3 | Documentation=https://linuxcontainers.org/incus/docs/main/ | 3 | Documentation=https://linuxcontainers.org/incus/docs/main/ |
| 4 | After=network-online.target | 4 | After=network-online.target incus.socket |
| 5 | Wants=network-online.target | 5 | Wants=network-online.target |
| 6 | Requires=incus.socket | ||
| 6 | ConditionPathExists=/var/lib/incus | 7 | ConditionPathExists=/var/lib/incus |
| 7 | 8 | ||
| 8 | [Service] | 9 | [Service] |
| 9 | Type=notify | 10 | Type=simple |
| 10 | ExecStart=/usr/sbin/incusd --group incus-admin | 11 | ExecStart=/usr/sbin/incusd --group incus-admin |
| 11 | ExecStop=/usr/sbin/incusd shutdown | 12 | ExecStop=/usr/sbin/incusd shutdown |
| 12 | TimeoutStartSec=600 | 13 | TimeoutStartSec=600 |
| @@ -16,7 +17,7 @@ LimitNOFILE=1048576 | |||
| 16 | LimitNPROC=infinity | 17 | LimitNPROC=infinity |
| 17 | TasksMax=infinity | 18 | TasksMax=infinity |
| 18 | Delegate=yes | 19 | Delegate=yes |
| 19 | KillMode=process | 20 | KillMode=control-group |
| 20 | 21 | ||
| 21 | [Install] | 22 | [Install] |
| 22 | WantedBy=multi-user.target | 23 | WantedBy=multi-user.target |
