summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-06-05 13:52:13 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-06-12 02:58:55 +0000
commit44bfc6144a8d4ebfc6e7fd02a667d69154a6b516 (patch)
tree762caa7d59d6b6765449153237814487e2895167
parentedfc302dbd43e8ca834224a778f8ab2e7fc168f0 (diff)
downloadmeta-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.service7
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]
2Description=Incus - Container and VM manager 2Description=Incus - Container and VM manager
3Documentation=https://linuxcontainers.org/incus/docs/main/ 3Documentation=https://linuxcontainers.org/incus/docs/main/
4After=network-online.target 4After=network-online.target incus.socket
5Wants=network-online.target 5Wants=network-online.target
6Requires=incus.socket
6ConditionPathExists=/var/lib/incus 7ConditionPathExists=/var/lib/incus
7 8
8[Service] 9[Service]
9Type=notify 10Type=simple
10ExecStart=/usr/sbin/incusd --group incus-admin 11ExecStart=/usr/sbin/incusd --group incus-admin
11ExecStop=/usr/sbin/incusd shutdown 12ExecStop=/usr/sbin/incusd shutdown
12TimeoutStartSec=600 13TimeoutStartSec=600
@@ -16,7 +17,7 @@ LimitNOFILE=1048576
16LimitNPROC=infinity 17LimitNPROC=infinity
17TasksMax=infinity 18TasksMax=infinity
18Delegate=yes 19Delegate=yes
19KillMode=process 20KillMode=control-group
20 21
21[Install] 22[Install]
22WantedBy=multi-user.target 23WantedBy=multi-user.target