From: Paul Hoffman Date: Wed, 28 Jun 2017 17:12:19 +0000 (-0700) Subject: Fix doc for building and running X-Git-Tag: v1.3.3~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca53bc44b852aa6db932f99f428bdf87fc78627;p=thirdparty%2Fknot-resolver.git Fix doc for building and running --- diff --git a/daemon/README.rst b/daemon/README.rst index ba01fb864..f8e70b5f1 100644 --- a/daemon/README.rst +++ b/daemon/README.rst @@ -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 ============= diff --git a/doc/build.rst b/doc/build.rst index 6b8275989..56264ea85 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -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