Commit ce256b5b authored by Bernd Zeimetz's avatar Bernd Zeimetz

Generate manpage automatically.

parent ca89b33e
.TH CARBON-C-RELAY "1" "April 2015" "carbon-c-relay" "User Commands"
.SH NAME
carbon-c-relay \- carbon-compatible graphite line mode relay
.SH SYNOPSIS
.B carbon-c-relay
[\fI\,-vdst\/\fR] \fI\,-f <config> \/\fR[\fI\,-p <port>\/\fR] [\fI\,-w <workers>\/\fR] [\fI\,-b <size>\/\fR] [\fI\,-q <size>\/\fR]
.SH OPTIONS
.TP
\fB\-v\fR
print version and exit
.TP
\fB\-f\fR
read <config> for clusters and routes
.TP
\fB\-p\fR
listen on <port> for connections, defaults to 2003
.TP
\fB\-i\fR
listen on <interface> for connections, defaults to all
.TP
\fB\-l\fR
write output to <file>, defaults to stdout/stderr
.TP
\fB\-w\fR
use <workers> worker threads, defaults to 16
.TP
\fB\-b\fR
server send batch size, defaults to 2500
.TP
\fB\-q\fR
server queue size, defaults to 25000
.TP
\fB\-S\fR
statistics sending interval in seconds, defaults to 60
.TP
\fB\-d\fR
debug mode: currently writes statistics to log
.TP
\fB\-s\fR
submission mode: write info about errors to log
.TP
\fB\-t\fR
config test mode: prints rule matches from input on stdin
.TP
\fB\-H\fR
hostname: override hostname (used in statistics)
.SH SEE ALSO
.TP
\fI/usr/share/doc/carbon-c-relay/README.md.gz\fR includes mode of operation and examples.
carbon-c-relay
debian/carbon-c-relay.1
......@@ -3,7 +3,7 @@ Section: net
Priority: optional
Maintainer: Filippo Giunchedi <filippo@debian.org>
Uploaders: Bernd Zeimetz <bzed@debian.org>
Build-Depends: debhelper (>= 9), dh-systemd, libssl-dev, pkg-config
Build-Depends: debhelper (>= 9), dh-systemd, libssl-dev, pkg-config, help2man
Standards-Version: 3.9.6
X-Python-Version: >= 2.7
Homepage: https://github.com/grobian/carbon-c-relay
......
#!/usr/bin/make -f
UPSTREAM_VERSION := $(strip $(shell dpkg-parsechangelog| sed -e '/^Version/!d' -e 's,.* ,,;s,-.*,,'))
%:
dh $@ --with systemd
override_dh_auto_install:
cp relay carbon-c-relay
help2man \
-n 'carbon-compatible graphite line mode relay' \
-s 1 \
-S 'Debian' \
-N ./carbon-c-relay \
--version-string='$(UPSTREAM_VERSION)' |\
sed -e 's,^.B relay,.B carbon-c-relay,' \
-e '/worker threads/s,to [0-9]*,to the number of cpu cores,' > debian/carbon-c-relay.1
dh_auto_install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment