]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Fix doc for building and running
authorPaul Hoffman <phoffman@proper.com>
Wed, 28 Jun 2017 17:12:19 +0000 (10:12 -0700)
committerPaul Hoffman <phoffman@proper.com>
Wed, 28 Jun 2017 17:12:19 +0000 (10:12 -0700)
daemon/README.rst
doc/build.rst

index ba01fb86404383500229036161a55ad2b1fb83f3..f8e70b5f12765729cd3451e2b406a89bb31d0011 100644 (file)
@@ -144,6 +144,12 @@ The watchdog process must notify kresd about active file descriptors, and kresd
 
 The daemon also supports `systemd socket activation`_, it is automatically detected and requires no configuration on users's side.
 
+To run the daemon by hand, such as under ``nohup``, use ``-f 1`` to start a single fork. For example:
+
+.. code-block:: bash
+   $ nohup ./daemon/kresd -a 127.0.0.1 -f 1 &
+
+
 Configuration
 =============
 
index 6b8275989bb83a283208e9868182287d67fa1743..56264ea85b6ed46f9cac331f91dc1157c1dce0b7 100644 (file)
@@ -125,6 +125,12 @@ When you have all the dependencies ready, you can build and install.
     Production code should be compiled with ``-DNDEBUG``.
     If you build the binary with ``-DNOVERBOSELOG``, it won't be possible to turn on verbose logging; we advise packagers against using that flag.
 
+.. note:: If you build with ``PREFIX``, you may need to also set the ``LDFLAGS`` for the libraries:
+
+.. code-block:: bash
+
+   make LDFLAGS="-Wl,-rpath=/usr/local/lib" PREFIX="/usr/local"
+
 Alternatively you can build only specific parts of the project, i.e. ``library``.
 
 .. code-block:: bash