Peter A. Bigot [Tue, 5 Aug 2014 21:39:58 +0000 (16:39 -0500)]
configure.ac: remove explicit default path for libxml2
OpenEmbedded needs to cross-compile rrdtool, and historically has
applied this patch locally because the implementation of EX_CHECK_ALL
unconditionally added -I/usr/include. Since the correct include path is
automatically provided by a successful pkg-config invocation there is no
need to set it explicitly.
rrd_strtoding now takes error string as an argument
This commit replaces all rrd_strtoding calls with a 4 argument
version of the function and also make sure that its return value
(which shows whether the string has been converted partially,
fully or not converted at all) is checked at all the places.
Tobias Oetiker [Mon, 30 Jun 2014 09:16:40 +0000 (11:16 +0200)]
* msync is NOT necessary before munmap, the data gets synced automatically
* remove WILLNEED madvise, this only slows the code down while the os des not seem todo anything sensible with the info
Peter A. Bigot [Sun, 1 Jun 2014 00:03:55 +0000 (19:03 -0500)]
rrdcached: add options to drop privileges after daemonize
Some init systems have an interface to run daemons as unprivileged
accounts, but they conflict with rrdcached's expectations of creating
pid files and sockets in privileged areas when following Filesystem
Hierarchy Standard namings. Add options that are used to drop to
unprivileged group and accounts after all activities that require
privilege have been completed.
Peter A. Bigot [Sat, 31 May 2014 21:27:16 +0000 (16:27 -0500)]
rrdcached: arrange option flags in order
To make it easier to determine which argument flags are available, the
getopt optstring is sorted into ASCII order. Checking this against the
documentation indicated several supported flags were not present in the
synopsis. Also make all flags bold for consistency.
moli [Fri, 23 May 2014 22:13:59 +0000 (00:13 +0200)]
mods of #477 rrdcached document changes
when group option is specified, socket permission is 760, not 750, i've tested this. the context confirms this behaviour is right, the text was wrong.
-P restricts unix sockets too! tested this also.
Peter A. Bigot [Tue, 20 May 2014 15:59:07 +0000 (10:59 -0500)]
rrdcached: support new option to listen on all addresses at default port
This functionality can be achieved with "-l ''" (specifying an empty
string for host:port) but empty strings may be dropped during option
processing in scripts. A separate option to support this capability is
much more clear.
Peter A. Bigot [Tue, 20 May 2014 15:31:12 +0000 (10:31 -0500)]
misc doc: fix erronous use of section qualifier in intra-package links
rrdxport and rrdcached do belong in section 1 of the Unix manpages, but
they are documented within the RRDTool hierarchy and use of the
qualifier prevents them from being found. Note also the need to
override the substitute text or modify the context so that the generated
HTML content reads correctly.
Peter A. Bigot [Tue, 20 May 2014 15:08:15 +0000 (10:08 -0500)]
rrd_daemon: move include of arpa/inet.h to avoid use on Windows
arpa/inet.h may not be available on Windows systems; since I can't test
that, avoid trying to include it there. Since the code that depends on
it is conditional on a define that would be provided by it, there should
be no impact from its absence except that somebody who uses Windows
would have to rework the fix for ipv4-over-ipv6 for that platform.
Peter A. Bigot [Mon, 19 May 2014 19:47:44 +0000 (14:47 -0500)]
rrdcached: support wildcard listen specifications
The documentation suggested that the syntax "-l :42217" would cause the
daemon to listen on all available interfaces. The implementation didn't
follow through, until now.
Peter A. Bigot [Mon, 19 May 2014 18:09:21 +0000 (13:09 -0500)]
librrd.sym: add rrd_scaled_duration
This librrd function was found when linking executables where main() was
in a libtool convenience library, but not when linking rrdcached. The
solution is to add it into the secret file that specifies which files
are part of the public API.
Peter A. Bigot [Sat, 17 May 2014 21:21:34 +0000 (16:21 -0500)]
etc: rename sysv init scripts to denote RedHat environment dependency
These example scripts will only work on RedHat-based distributions that
support chkconfig and /etc/init.d/functions. They are not compatible
with current Linux Standard Base init scripts.
moli [Mon, 19 May 2014 18:58:38 +0000 (20:58 +0200)]
mods of #477 added clarifications
added text explaining templates cannot be used with rrdcached
rewrote timestamp syntax, maybe now it went to the other extreme..
removed deprecated --cache parameter from the example section
fixed --daemon behaviour description, please check if it is true
moli [Mon, 19 May 2014 08:39:37 +0000 (10:39 +0200)]
mods of #477 fixing help example and trying to fix anchors
rrdtool help example was clarified
and i'm trying to fix the html anchor here, but dont know how could i check if it's working or not. Googled and read http://perldoc.perl.org/perlpodspec.html still dont have a clue what does it say.