mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
core: leave comments in varlink-unit.c and varlink-cgroup.c about runtime/context split
This commit is contained in:
@@ -269,6 +269,10 @@ int unit_cgroup_context_build_json(sd_json_variant **ret, const char *name, void
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* The main principle behind context/runtime split is the following:
|
||||
* If it make sense to place a property into a config/unit file it belongs to Context.
|
||||
* Otherwise it's a 'Runtime'. */
|
||||
|
||||
return sd_json_buildo(
|
||||
ret,
|
||||
|
||||
|
||||
@@ -104,6 +104,10 @@ static int unit_conditions_build_json(sd_json_variant **ret, const char *name, v
|
||||
static int unit_context_build_json(sd_json_variant **ret, const char *name, void *userdata) {
|
||||
Unit *u = ASSERT_PTR(userdata);
|
||||
|
||||
/* The main principle behind context/runtime split is the following:
|
||||
* If it make sense to place a property into a config/unit file it belongs to Context.
|
||||
* Otherwise it's a 'Runtime'. */
|
||||
|
||||
return sd_json_buildo(
|
||||
ASSERT_PTR(ret),
|
||||
SD_JSON_BUILD_PAIR_STRING("Type", unit_type_to_string(u->type)),
|
||||
|
||||
Reference in New Issue
Block a user