In myexample.config
:
{ "services": { "fuchsia.example.MyExample": "fuchsia-pkg://fuchsia.com/myexample#meta/myexample.cmx" } }
In BUILD.gn
:
config_data("myexample.config") { for_pkg = "sysmgr" sources = "myexample.config" }
The sysmgr services configuration is a JSON file consisting of service registrations. Each entry in the “services” map consists of a service name and the application URL which provides it.
{ "services": { "service-name-1": "app_without_args", "service-name-2": [ "app_with_args", "arg1", "arg2", "arg3" ] } }
The sysmgr apps configuration is a JSON file consisting of apps to run at startup. Each entry in the “apps” list consists of either an app URL or a list of an app URL and its arguments.
{ "apps": [ "app_without_args", [ "app_with_args", "arg1", "arg2", "arg3" ] ] }