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.
Peter A. Bigot [Sat, 17 May 2014 20:57:27 +0000 (15:57 -0500)]
make distcheck: complete updates required for support
Rework the tests so they can run in a situation where the source tests
directory is read-only. Also fix a couple minor issues with make
distclean and make distuninstallcheck.
Peter A. Bigot [Sat, 17 May 2014 20:05:53 +0000 (15:05 -0500)]
automake: full support for make check
Presence of the TESTS variable adds check as a target, but for this to
work completely all the test infrastructure needs to be part of the
distribution package, which is easiest if there's a Makefile.am in that
directory.
Peter A. Bigot [Sat, 17 May 2014 19:25:18 +0000 (14:25 -0500)]
automake: rework for separated builds
Standard practice (including the assumptions of make distcheck) is that
the system can be built in an out-of-tree directory referencing sources
in a read-only filesystem. The language-specific bindings build
infrastructure, particularly for perl, makes that difficult but
achievable.
Peter A. Bigot [Sat, 17 May 2014 12:42:26 +0000 (07:42 -0500)]
autoconf: rework config file locations
If we assume somebody puts the src directory in the include file path to
CC, we don't need relative symlinks to rrd_config.h which will make
separated builds much easier to support. Then we don't need to have the
config files in the root directory and symlinks back and forth between
there and src.
Peter A. Bigot [Sat, 17 May 2014 12:10:50 +0000 (07:10 -0500)]
automake: update dist checks for recent changes
Various files have been added and removed causing the dist and distcheck
Make targets to fail. This commit fixes dist; distcheck is improved but
is not complete because the bindings Makefile.am assumes the build is
performed in the source tree. (Standard autotool practice now is to
require support for separated builds.)
Peter A. Bigot [Fri, 16 May 2014 15:52:49 +0000 (10:52 -0500)]
rrd_scaled_duration: refactor as utility function
Move the infrastructure supporting expression of counts and durations by
suffixed integers into librrd where it can be used by other programs.
Clean up the documentation to remove redundancies.
Peter A. Bigot [Fri, 16 May 2014 14:42:49 +0000 (09:42 -0500)]
cleanup: fix make distclean in doc
RRD*.pod were in the repository, but were always generated and were
removed by "make distclean", resulting in an unexpected response from
"git status". Resolve this by removing them from the repository.
Also eliminate the wildcards from CLEANFILES, instead explicitly listing
all derived files.
Also add a couple files to EXTRADIST (PDF documentation and the RRD*.pod
files).