doc: update installation instructions

This commit is contained in:
Miroslav Lichvar 2016-02-16 14:22:58 +01:00
parent d04fb4b7fa
commit 5828426977
2 changed files with 16 additions and 5 deletions

View file

@ -339,9 +339,16 @@ for C-family shells.
If the software cannot (yet) be built on your system, an error message If the software cannot (yet) be built on your system, an error message
will be shown. Otherwise, @file{Makefile} will be generated. will be shown. Otherwise, @file{Makefile} will be generated.
If editline or readline library is available, chronyc will be built with line On Linux, if development files for the libcap library are available,
editing support. If you don't want this, specify the --disable-readline flag @code{chronyd} will be built with support for dropping root privileges.
to configure. Please refer to @pxref{line editing support} for more information. On other systems no extra library is needed. The default user which
@code{chronyd} should run as can be specified with the @code{--with-user}
option of the configure script.
If development files for the editline or readline library are available,
@code{chronyc} will be built with line editing support. If you don't want
this, specify the --disable-readline flag to configure. Please refer to
@pxref{line editing support} for more information.
If a @file{timepps.h} header is available (e.g. from the If a @file{timepps.h} header is available (e.g. from the
@uref{http://linuxpps.org/, LinuxPPS project}), @code{chronyd} will be built with PPS API @uref{http://linuxpps.org/, LinuxPPS project}), @code{chronyd} will be built with PPS API
@ -407,7 +414,11 @@ makestep 1.0 3
rtcsync rtcsync
@end example @end example
Then, @code{chronyd} can be run. Then, @code{chronyd} can be run. For security reasons, it's recommended to
create an unprivileged user for @code{chronyd} and specify it with the
@code{-u} command-line option or the @code{user} directive in the configuration
file, or set the default user with the @code{--with-user} configure option
before building.
@c }}} @c }}}
@menu @menu
* line editing support:: If libraries are in a non-standard place * line editing support:: If libraries are in a non-standard place

View file

@ -51,7 +51,7 @@ awk '/^[1-9] Installation$/{p=1}
/^[1-9]\.. Support for line editing/{exit}; p' chrony.txt | \ /^[1-9]\.. Support for line editing/{exit}; p' chrony.txt | \
tail -n +4 > INSTALL tail -n +4 > INSTALL
if [ $(wc -l < INSTALL) -gt 100 -o $(wc -l < INSTALL) -lt 85 ]; then if [ $(wc -l < INSTALL) -gt 120 -o $(wc -l < INSTALL) -lt 85 ]; then
echo "INSTALL generated incorrectly?" echo "INSTALL generated incorrectly?"
exit 3 exit 3
fi fi