From cd799b50acc62a1743364698a2b909177cd9b2c0 Mon Sep 17 00:00:00 2001 From: Luca Miccini Date: Mon, 8 Jun 2015 14:33:27 +0200 Subject: [PATCH] [pcp2graphite] document systemd service file template in manpage --- man/man1/pcp2graphite.1 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/man/man1/pcp2graphite.1 b/man/man1/pcp2graphite.1 index 92c0c1a9a..612e44638 100644 --- a/man/man1/pcp2graphite.1 +++ b/man/man1/pcp2graphite.1 @@ -33,6 +33,32 @@ copies of this program may be run in parallel, to populate different Graphite databases or subtrees, with different scaling or sampling intervals. +Example of a systemd service file that can be used to have systemd +managing a single instance of pcp2graphite: + +.sp +.if n \{\ +.RS 4 +.\} +.nf +[Unit] +Description=Performance Co-Pilot data pump to Graphite +Documentation=man:pcp2graphite(8) +After=pmcd.service + +[Service] +ExecStart=/opt/pcp/pcp2graphite.py + +[Install] +WantedBy=multi\-user\&.target +.fi +.if n \{\ +.RE +.\} +.PP + +.SH OPTIONS + .TP .B \-h HOST Specify the PMCD server where PCP metrics are to be extracted from.