From: Tomas Krizek Date: Thu, 16 Jan 2020 14:25:33 +0000 (+0100) Subject: doc/build: update systemd instructions X-Git-Tag: v5.0.0~3^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fc31fbfa2d6864f3ef1cea77808e6251789c2f2;p=thirdparty%2Fknot-resolver.git doc/build: update systemd instructions --- diff --git a/doc/build.rst b/doc/build.rst index 960813ce6..7302bf7e6 100644 --- a/doc/build.rst +++ b/doc/build.rst @@ -230,6 +230,7 @@ Recommended build options for packagers: * ``--prefix=/usr`` to customize prefix, other directories can be set in a similar fashion, see ``meson setup --help`` +* ``-Dsystemd_files=enabled`` for systemd unit files * ``-Ddoc=enabled`` for offline html documentation (see :ref:`build-html-doc`) * ``-Dinstall_kresd_conf=enabled`` to install default config file * ``-Dclient=enabled`` to force build of kresc @@ -242,12 +243,7 @@ It's recommended to use the upstream system unit files. If any customizations are required, drop-in files should be used, instead of patching/changing the unit files themselves. -Depending on your systemd version, choose the appropriate build option: - -* ``-Dsystemd_files=enabled`` (recommended) installs unit files with - systemd socket activation support. Requires systemd >=227. -* ``-Dsystemd_files=nosocket`` for systemd <227. Unit files won't use - socket activation. +To install systemd unit files, use the ``-Dsystemd_files=enabled`` build option. To support enabling services after boot, you must also link ``kresd.target`` to ``multi-user.target.wants``: