]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: leave comments in varlink-unit.c and varlink-cgroup.c about runtime/context... 38172/head
authorIvan Kruglov <mail@ikruglov.com>
Fri, 11 Jul 2025 10:19:41 +0000 (03:19 -0700)
committerIvan Kruglov <mail@ikruglov.com>
Fri, 11 Jul 2025 13:56:17 +0000 (06:56 -0700)
src/core/varlink-cgroup.c
src/core/varlink-unit.c

index 59c0a0f15bae0caba672ec78bb622043c4f56054..88d13f3c45b1ea8a40a5b326cc0b025e2fc94666 100644 (file)
@@ -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,
 
index 71ca5d4a7dfcd32806f4aefea83de7b4854afa93..da02fa1cf87d604aad97a5c0002e3790d4855554 100644 (file)
@@ -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)),