System Bootstrap Application

This directory contains Bootstrap, an application which is responsible for setting up an environment which provides access to global system services.

This application is intended to be run very early in the Fuchsia boot process before bringing up the graphical environment. In a fully integrated system you will not have need to run Bootstrap directly because it will already be running.

Bootstrap is designed to be fairly robust. If any of the services dies, they will be restarted automatically the next time an application attempts to connect to that service.

By default, bootstrap reads a configuration file from “/system/data/bootstrap/services.config”.


Bootstrap takes a single application to run within the newly created environment.

@ bootstrap [args...] <app url> <app args...>

Bootstrap can also be run without any initial apps for debugging purposes.

@ bootstrap -

URLs can be specified in any of the following forms:

file:///path/to/my_app : canonical url
/path/to/my_app : absolute path
my_app : partial name resolved in path


Register additional services by providing service name and application url to launch:

--reg=<service1 name>@<app1 url>[,<service2 name>@<app2 url>...]

Use a different configuration file:


Do not register services from config file (note that --reg-associate will not work);


Set environment label (default is “boot”):


Standard logging arguments:



Run ‘device_runner’:

@ bootstrap device_runner

Run ‘launcher’ passing ‘noodles_view’ as argument to it:

@ bootstrap launcher noodles_view

Run ‘guide’ providing two additional services in its environment:

@ bootstrap --reg=hitchhike::Towel@file:///path/to/towel,hitchhike::HoopyFrood@file:///path/to/ford_prefect guide

Run ‘my_app’ with a custom configuration file:

@ bootstrap --config=my.config my_app

Run ‘my_app’ without any other configured services:

@ bootstrap --no-config --reg=my::Service@file:///path/to/my_server my_app



The bootstrap 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": "file:///system/apps/app_without_args",
    "service-name-2": [
       "file:///system/apps/app_with_args", "arg1", "arg2", "arg3"


The bootstrap 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": [
    [ "file:///system/apps/app_with_args", "arg1", "arg2", "arg3" ]


Bootstrap only sets up one environment whereas it could perhaps set up a tree of environments and launch applications within them according to their privilege level and the isolation they require.