]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: leave a comment about context/runtime split 38135/head
authorIvan Kruglov <mail@ikruglov.com>
Wed, 9 Jul 2025 13:15:04 +0000 (06:15 -0700)
committerIvan Kruglov <mail@ikruglov.com>
Thu, 10 Jul 2025 19:08:11 +0000 (21:08 +0200)
src/core/varlink-manager.c

index d430fc9637eb39d9b6b19d61076efd51966edc2b..3414ccb9edc6f2e792efdb629e09894f9327b762 100644 (file)
@@ -69,6 +69,10 @@ static int log_level_build_json(sd_json_variant **ret, const char *name, void *u
 static int manager_context_build_json(sd_json_variant **ret, const char *name, void *userdata) {
         Manager *m = 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_BOOLEAN("ShowStatus", manager_get_show_status_on(m)),