mirror of
https://github.com/troglobit/finit.git
synced 2026-10-18 10:59:34 +00:00
Allow forking sysv/services like podman to move between cgroups
The container monitor that podman forks off when starting a container instance creates subgroups in the cgroup v2 hieararchy that we want to reuse. This patch adds cgroup_move_svc() which we call from the pidfile plugins to relocate the conmon process. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
3 files changed
+131
No files matched your search
@@ -143,6 +143,7 @@ static void pidfile_update_conds(char *dir, char *name, uint32_t mask)
|
||||
|
||||
/* Complement log in service.c for non-forking services */
|
||||
logit(LOG_CONSOLE | LOG_NOTICE, "Started %s[%d]", svc_ident(svc, NULL, 0), pid);
|
||||
cgroup_move_svc(svc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user