From: Ivan Kruglov Date: Wed, 9 Jul 2025 13:15:04 +0000 (-0700) Subject: core: leave a comment about context/runtime split X-Git-Tag: v258-rc1~105^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F38135%2Fhead;p=thirdparty%2Fsystemd.git core: leave a comment about context/runtime split --- diff --git a/src/core/varlink-manager.c b/src/core/varlink-manager.c index d430fc9637e..3414ccb9edc 100644 --- a/src/core/varlink-manager.c +++ b/src/core/varlink-manager.c @@ -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)),