2 Launching options of afb-daemon
5 The launch options for binder **afb-daemon** are:
9 Prints help with available options
13 Display version and copyright
17 Increases the verbosity, can be repeated
21 Decreases the verbosity, can be repeated
25 HTTP listening TCP port [default 1234]
29 Directory where the daemon must run [default: $PWD if defined
30 or the current working directory]
34 Directory where uploaded files are temporarily stored [default: workdir]
38 Root directory of the application to serve [default: workdir]
42 Directory of HTTP served files. If not set, files are not served
43 but apis are still accessible.
47 Angular Base Root URL [default /opa]
49 This is used for any application of kind OPA (one page application).
50 When set, any missing document whose url has the form /opa/zzz
51 is translated to /opa/#!zzz
55 HTML Root API URL [default /api]
57 The bindings are available within that url.
61 Maps a path located anywhere in the file system to the
62 a subdirectory. The syntax for mapping a PATH to the
63 subdirectory NAME is: --alias=/NAME:PATH.
65 Example: --alias=/icons:/usr/share/icons maps the
66 content of /usr/share/icons within the subpath /icons.
68 This option can be repeated.
72 binding API timeout in seconds [default 20]
74 Defines how many seconds maximum a method is allowed to run.
79 Client Session Timeout in seconds [default 3600]
83 Client cache end of live [default 100000 that is 27,7 hours]
87 Maximum count of simultaneous sessions [default 10]
91 Load bindings from given paths separated by colons
92 as for dir1:dir2:binding1.so:... [default = $libdir/afb]
94 You can mix path to directories and to bindings.
95 The sub-directories of the given directories are searched
98 The bindings are the files terminated by '.so' (the extension
99 so denotes shared object) that contain the public entry symbol.
103 Load the binding of given path.
107 Initial Secret token to authenticate.
109 If not set, no client can authenticate.
111 If set to the empty string, then any initial token is accepted.
115 Generate a random starting token. See option --exec.
119 Set the mode: either local, remote or global.
121 The mode indicate if the application is run locally on the host
122 or remotely through network.
126 Transparent binding to a binder afb-daemon service through dbus.
128 It creates an API of name xxxx that is implemented remotely
129 and queried via DBUS.
133 Provides a binder afb-daemon service through dbus.
135 The name xxxx must be the name of an API defined by a binding.
136 This API is exported through DBUS.
140 Transparent binding to a binder afb-daemon service through a WebSocket.
142 The value of xxxx is either a unix naming socket, of the form "unix:path/api",
143 or an internet socket, of the form "host:port/api".
147 Provides a binder afb-daemon service through WebSocket.
149 The value of xxxx is either a unix naming socket, of the form "unix:path/api",
150 or an internet socket, of the form "host:port/api".
154 Get all in foreground mode (default)
158 Get all in background mode
166 Must be the last option for afb-daemon. The remaining
167 arguments define a command that afb-daemon will launch.
168 The sequences @p, @t and @@ of the arguments are replaced
169 with the port, the token and @.
173 Trace the processing of requests in the log file.
175 Valid values are 'no' (default), 'common', 'extra' or 'all'.
179 Trace the accesses to functions of class daemon.
181 Valid values are 'no' (default), 'common', 'extra' or 'all'.
185 Trace the accesses to functions of class service.
187 Valid values are 'no' (default) or 'all'.
191 Trace the accesses to functions of class event.
193 Valid values are 'no' (default), 'common', 'extra' or 'all'.
197 Call a binding at start (can be be repeated).
198 The values are given in the form API/VERB:json-args.
200 Example: --call 'monitor/set:{"verbosity":{"api":"debug"}}'