summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc0d31d)
raw | patch | inline | side by side (parent: cc0d31d)
author | octo <octo> | |
Fri, 16 Dec 2005 12:46:43 +0000 (12:46 +0000) | ||
committer | octo <octo> | |
Fri, 16 Dec 2005 12:46:43 +0000 (12:46 +0000) |
Makefile.am | patch | blob | history | |
configure.in | patch | blob | history | |
debian/changelog | patch | blob | history | |
src/collectd.c | patch | blob | history | |
src/collectd.pod | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index c60110c4c22c014ff92742f9fa053b9ccfab1877..30beb6397998679dfb342bf03f770e06522b97f4 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
find $(distdir) -type d -name '.svn' | xargs rm -rf
install-exec-hook:
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/run
+ $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lib/$(PACKAGE_NAME)
diff --git a/configure.in b/configure.in
index d0496025eb9e1f87ec3fdcdf772312770963766e..293fc6ad09ecf582afe246f4b629f3cd56c47d0c 100644 (file)
--- a/configure.in
+++ b/configure.in
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.5.alpha2)
+AC_INIT(collectd, 3.5.0)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
diff --git a/debian/changelog b/debian/changelog
index 7199fb7b26dcc4dd855c336ddf8b408261159c98..215c322de2ad7fdbe0bd1386d6ae85b56c4619ee 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
collectd (3.5.0-1) unstable; urgency=low
* New upstream version
+ * Added dependency to `cpufreqd | powernowd | cpudyn' to `collectd-cpufreq'
+ * Added `collectd-users'
+ * Added `--localstatedir=/var' to `./configure'
- -- Florian Forster <octo@verplant.org> Wed, 07 Dec 2005 11:50:17 +0200
+ -- Florian Forster <octo@verplant.org> Fri, 16 Dec 2005 13:06:43 +0200
collectd (3.4.0-1) unstable; urgency=low
diff --git a/src/collectd.c b/src/collectd.c
index 8e92bfbc857b77e3eb3c058c6e817300662ab245..af6a93e09e7b4664580cbaad98c1fa8c439c5b31 100644 (file)
--- a/src/collectd.c
+++ b/src/collectd.c
}
#endif /* HAVE_LIBRRD */
-int pidfile_create (void)
+int pidfile_create (char *file)
{
FILE *fh;
- if ((fh = fopen (PIDFILE, "w")) == NULL)
+ if (file == NULL)
+ file = PIDFILE;
+
+ if ((fh = fopen (file, "w")) == NULL)
{
- syslog (LOG_ERR, "fopen (pidfile): %s", strerror (errno));
+ syslog (LOG_ERR, "fopen (%s): %s", file, strerror (errno));
return (1);
}
setsid ();
/* Write pidfile */
- if (pidfile_create ())
+ if (pidfile_create (pidfile))
exit (2);
/* close standard descriptors */
diff --git a/src/collectd.pod b/src/collectd.pod
index 55a99edc2a6e0dd0e2530deb8d4c0c589e1fdbdd..935f2fe0603129fcb92e79ea9b17c57037e0edb7 100644 (file)
--- a/src/collectd.pod
+++ b/src/collectd.pod
=over 4
+=item B<-l>
+
+Start in local mode. This is the default. No data will be sent or read to/from
+the network. Information will be read and written by the same process. See
+L<"MODES">.
+
=item B<-c>
Start in client (transmitter) mode. Data will be sent to the multicast group.
See L<"MODES">.
-=item B<-d> I<E<lt>directoryE<gt>>
+=item B<-s>
+
+Start in server (receiver) mode. Data sent to the multicast group will be read
+and stored in RRD files. See L<"MODES">.
+
+=item B<-f>
+
+Don't fork to the background. I<collectd> will also B<not> close standard file
+descriptors, detach from the session nor write a pid file. This is mainly
+thought for 'supervisioning' init replacements such as I<runit>.
+
+=item B<-D> I<E<lt>directoryE<gt>>
Sets the directory collectd should work in. All F<.rrd>-files are created in
this directory. Per default this is F</var/lib/collectd/>.
-=item B<-P> I<E<lt>directoryE<gt>>
+=item B<-M> I<E<lt>directoryE<gt>>
Sets the directory collectd should look for plugins in. Per default this is
F</usr/lib/collectd>.
-=item B<-f>
+=item B<-P> I<E<lt>fileE<gt>>
-Don't fork to the background. I<collectd> will also B<not> close standard file
-descriptors, detach from the session nor write a pid file. This is mainly
-thought for 'supervisioning' init replacements such as I<runit>.
+Sets the PID-file.
=item B<-h>
Output usage information and exit.
-=item B<-l>
-
-Start in local mode. This is the default. No data will be sent or read to/from
-the network. Information will be read and written by the same process. See
-L<"MODES">.
-
=item B<-p> I<E<lt>hostE<gt>>
Sets the host to ping periodically. This option may be given more than once to
ping multiple hosts. If this option is not given at least once no host will be
pinged.
-=item B<-s>
-
-Start in server (receiver) mode. Data sent to the multicast group will be read
-and stored in RRD files. See L<"MODES">.
-
=back
=head1 RRD FILES