mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 06/10] collectd: add base functionality
Date: Tue, 27 Jan 2015 11:17:30 +0100	[thread overview]
Message-ID: <20150127101730.GJ5565@pengutronix.de> (raw)
In-Reply-To: <20150127100159.GT5143@pengutronix.de>

Hi,

> > This is just a copy from the shipped file, right? Just install it manually
> > in the install stage and then use install_copy in targetinstall.
> 
> It's modified to use the standard location for the config file.

In that case, we should clean it up:

On Tue, Jan 27, 2015 at 11:01:59AM +0100, Robert Schwebel wrote:
> On Tue, Jan 27, 2015 at 08:31:42AM +0100, Michael Olbrich wrote:
> > > diff --git a/generic/lib/systemd/system/collectd.service b/generic/lib/systemd/system/collectd.service
> > > new file mode 100644
> > > index 0000000..53eb5db
> > > --- /dev/null
> > > +++ b/generic/lib/systemd/system/collectd.service
> > > @@ -0,0 +1,15 @@
> > > +[Unit]
> > > +Description=statistics collection daemon
> > > +Documentation=man:collectd(1)
> > > +After=local-fs.target network.target
> > > +Requires=local-fs.target network.target

local-fs.target is already the default, so that can be dropped.
network.target is rarely what you want. What kind of network requirements
does collectd have?

> > > +
> > > +[Service]
> > > +ExecStart=/usr/sbin/collectd -C /etc/collectd.conf -f

drop the config file, it it's the default.

> > > +Restart=always

> > > +RestartSec=10

I don't see a reason to wait 10 seconds. The default should be ok.

> > > +StandardOutput=syslog
> > > +StandardError=syslog

syslog will just be forwarded to the journal, so this can be dropped.

Michael

> > > +
> > > +[Install]
> > > +WantedBy=multi-user.target
> > 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-01-27 10:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-25  0:37 [ptxdist] [PATCH 01/10] rrdtool: version bump 1.4.7 -> 1.4.9 Robert Schwebel
2015-01-25  0:37 ` [ptxdist] [PATCH 02/10] rrdtool: audit configure options Robert Schwebel
2015-01-26 14:12   ` Michael Olbrich
2015-01-25  0:37 ` [ptxdist] [PATCH 03/10] rrdtool: fix libxml2 handling Robert Schwebel
2015-01-26 15:53   ` Michael Olbrich
2015-01-26 16:07     ` Uwe Kleine-König
2015-01-25  0:37 ` [ptxdist] [PATCH 04/10] rrdtool: make graph functionality optional Robert Schwebel
2015-01-26 15:57   ` Michael Olbrich
2015-01-25  0:37 ` [ptxdist] [PATCH 05/10] rrdtool: install multithreaded library Robert Schwebel
2015-01-25  0:37 ` [ptxdist] [PATCH 06/10] collectd: add base functionality Robert Schwebel
2015-01-27  7:31   ` Michael Olbrich
2015-01-27 10:01     ` Robert Schwebel
2015-01-27 10:17       ` Michael Olbrich [this message]
2015-01-25  0:37 ` [ptxdist] [PATCH 07/10] collectd: add support for rrdtool plugin Robert Schwebel
2015-01-25  0:37 ` [ptxdist] [PATCH 08/10] collectd: add support for syslog plugin Robert Schwebel
2015-01-25  0:37 ` [ptxdist] [PATCH 09/10] collectd: add support for cpu plugin Robert Schwebel
2015-01-25  0:37 ` [ptxdist] [PATCH 10/10] collectd: add support for logfile plugin Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150127101730.GJ5565@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox