Conversation
Use mkdir_p() libubox helper function to create cgroup instance directories. This simplifies instance_add_cgroup() and also avoids returning an error in case the service directory already exists. Fixes: openwrt#31 Fixes: 7e5b324 ("instance: check length of names when creating cgroups") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
@dangowrt @jfranzlx Qbittorrent does not start when the /etc/qbittorrent folder already exists. If you delete the folder, it will start once. After rebooting or updating the firmware, qbittorrent it still won't start until you delete the folder. |
|
Are you sure you are using procd after this commit? |
After the latest changes procd, stopped working. |
|
Please check which version of procd you currently got installed. 2026-02-17? |
Yes. I tried the new build today. procd | 2026.02.17~180ffccf-r1 |
|
Interesting. Before openwrt/openwrt@361885b there wasn't any check whether cgroup for the instance is actually created, now there are several checks along the way. diff --git a/service/instance.c b/service/instance.c
index a456b8c..6e13cf5 100644
--- a/service/instance.c
+++ b/service/instance.c
@@ -677,7 +677,7 @@ instance_start(struct service_instance *in)
ret = instance_add_cgroup(in->srv->name, in->name);
if (ret)
ULOG_WARN("failed adding instance cgroup for %s: %s\n",
- in->srv->name, strerror(ret));
+ in->srv->name, strerror((ret < 0)? -ret : ret));
instance_run(in, opipe[1], epipe[1]);
return; |
|
I can't build it. After patching, error One more parenthesis was missing at the end. Now building |
|
Strange, no more cgroups related error message at all now. Just that the instance of qbittorrent itself is crashing... |
I found the reason. I have a rule to save the |
|
Previously, the |


Use mkdir_p() libubox helper function to create cgroup instance directories. This simplifies instance_add_cgroup() and also avoids returning an error in case the service directory already exists.
Fixes: #31
Fixes: 7e5b324 ("instance: check length of names when creating cgroups")