Fix binding example path & update afb-daemon options 98/22198/5
authorLi Xiaoming <lixm.fnst@cn.fujitsu.com>
Fri, 23 Aug 2019 08:57:42 +0000 (16:57 +0800)
committerLi Xiaoming <lixm.fnst@cn.fujitsu.com>
Fri, 23 Aug 2019 08:57:42 +0000 (16:57 +0800)
Bug-AGL: SPEC-2714

Change-Id: I78aee6b3d96728a7eb394ddd94000c516fbc63ba
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
docs/afb-binding-writing.md
docs/afb-daemon-options.md

index e1401d8..3e4abe3 100644 (file)
@@ -105,7 +105,7 @@ gcc -fPIC -shared tuto-1.c -o tuto-1.so $(pkg-config --cflags-only-I afb-daemon)
 Running:
 
 ```bash
-afb-daemon --binding tuto-1.so --port 3333 --token ''
+afb-daemon --binding ./tuto-1.so --port 3333 --token ''
 ```
 
 At this point, afb-daemon has started, it loaded the binding tuto-1.so and now
@@ -356,7 +356,7 @@ gcc -fPIC -shared tuto-2.c -o tuto-2.so $(pkg-config --cflags --libs afb-daemon)
 Running:
 
 ```bash
-afb-daemon --binding tuto-2.so --port 3333 --token ''
+afb-daemon --binding ./tuto-2.so --port 3333 --token ''
 ```
 
 Testing:
@@ -401,7 +401,7 @@ ON-REPLY 4:tuto-2/action: OK
 }
 ```
 
-In an other terminal:
+In another terminal:
 
 ```bash
 $ afb-client-demo -H localhost:3333/api?token=toto
index 0588fef..d8618bb 100644 (file)
@@ -9,7 +9,7 @@ The launch options for binder **afb-daemon** are:
  -l, --log=xxxx          Tune log level
      --foreground        Get all in foreground mode
      --background        Get all in background mode
    --daemon            Get all in background mode
-D, --daemon            Get all in background mode
  -n, --name=xxxx         Set the visible name
  -p, --port=xxxx         HTTP listening TCP port  [default 1234]
      --roothttp=xxxx     HTTP Root Directory [default no root http (files not served but apis still available)]
@@ -20,9 +20,9 @@ The launch options for binder **afb-daemon** are:
      --cntxtimeout=xxxx  Client Session Context Timeout [default 32000000]
      --cache-eol=xxxx    Client cache end of live [default 100000]
  -w, --workdir=xxxx      Set the working directory [default: $PWD or current working directory]
- -u, --uploaddir=xxxx    Directory for uploading files [default: workdir]
-     --rootdir=xxxx      Root Directory of the application [default: workdir]
-     --ldpaths=xxxx      Load bindings from dir1:dir2:... [default = /opt/jobol/lib64/afb]
+ -u, --uploaddir=xxxx    Directory for uploading files [default: workdir] relative to workdir
+     --rootdir=xxxx      Root Directory of the application [default: workdir] relative to workdir
+     --ldpaths=xxxx      Load bindings from dir1:dir2:... [default: path of afb-dbus-binding.so]
  -b, --binding=xxxx      Load the binding of path
      --weak-ldpaths=xxxx Same as --ldpaths but ignore errors
      --no-ldpaths        Discard default ldpaths loading
@@ -41,14 +41,15 @@ The launch options for binder **afb-daemon** are:
      --traceglob=xxxx    Log the globals: none, all
      --traceditf=xxxx    Log the daemons: no, common, all
      --tracesvc=xxxx     Log the services: no, all
-     --call=xxxx         call at start format of val: API/VERB:json-args
+     --call=xxxx         call at start, format of val: API/VERB:json-args
      --no-httpd          Forbid HTTP service
  -e, --exec              Execute the remaining arguments
  -M, --monitoring        Enable HTTP monitoring at <ROOT>/monitoring/
  -C, --config=xxxx       Load options from the given config file
  -Z, --dump-config       Dump the config to stdout and exit
  -s, --set=xxxx          Set parameters ([API]/[KEY]:JSON or {"API":{"KEY":JSON}}
- -o, --output=xxxx       Redirect stdout and stderr to output file
+ -o, --output=xxxx       Redirect stdout and stderr to output file (when --daemon)
+     --trap-faults=xxxx  Trap faults: on, off, yes, no, true, false, 1, 0 (default: true)
 ```
 
 ## help