From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1YG2y7-0006DA-Vm for ptxdist@pengutronix.de; Tue, 27 Jan 2015 11:01:59 +0100 Received: from rsc by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1YG2y7-00054r-U8 for ptxdist@pengutronix.de; Tue, 27 Jan 2015 11:01:59 +0100 Date: Tue, 27 Jan 2015 11:01:59 +0100 From: Robert Schwebel Message-ID: <20150127100159.GT5143@pengutronix.de> References: <1422146246-11197-1-git-send-email-r.schwebel@pengutronix.de> <1422146246-11197-6-git-send-email-r.schwebel@pengutronix.de> <20150127073142.GG20195@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150127073142.GG20195@pengutronix.de> Subject: Re: [ptxdist] [PATCH 06/10] collectd: add base functionality Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 > > + > > +[Service] > > +ExecStart=/usr/sbin/collectd -C /etc/collectd.conf -f > > +Restart=always > > +RestartSec=10 > > +StandardOutput=syslog > > +StandardError=syslog > > + > > +[Install] > > +WantedBy=multi-user.target > > 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. rsc -- 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