Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] collectd: Fix typo
@ 2016-02-21 13:09 Maxime Hadjinlian
  2016-02-21 13:09 ` [Buildroot] [PATCH 2/2] collectd: Add service file Maxime Hadjinlian
  2016-02-21 13:29 ` [Buildroot] [PATCH 1/2] collectd: Fix typo Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Maxime Hadjinlian @ 2016-02-21 13:09 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 package/collectd/collectd.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index 06c5389..eb66f25 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -16,7 +16,7 @@ COLLECTD_LICENSE_FILES = COPYING
 COLLECTD_PLUGINS_DISABLE = \
 	amqp apple_sensors aquaero ascent barometer dbi email \
 	gmond hddtemp ipmi java libvirt lpar lvm madwifi mbmon \
-	mic multimeter netapp  notify_desktop notify_email numa \
+	mic multimeter netapp notify_desktop notify_email numa \
 	nut onewire oracle perl pf pinba powerdns python redis routeros \
 	rrdcached sigrok tape target_v5upgrade teamspeak2 ted \
 	tokyotyrant turbostat uuid varnish virt vserver write_kafka \
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 2/2] collectd: Add service file
  2016-02-21 13:09 [Buildroot] [PATCH 1/2] collectd: Fix typo Maxime Hadjinlian
@ 2016-02-21 13:09 ` Maxime Hadjinlian
  2016-02-21 13:29 ` [Buildroot] [PATCH 1/2] collectd: Fix typo Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Maxime Hadjinlian @ 2016-02-21 13:09 UTC (permalink / raw)
  To: buildroot

The service file was taken from Debian.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 package/collectd/collectd.mk      |  8 ++++++++
 package/collectd/collectd.service | 17 +++++++++++++++++
 2 files changed, 25 insertions(+)
 create mode 100644 package/collectd/collectd.service

diff --git a/package/collectd/collectd.mk b/package/collectd/collectd.mk
index eb66f25..78e24b8 100644
--- a/package/collectd/collectd.mk
+++ b/package/collectd/collectd.mk
@@ -185,4 +185,12 @@ define COLLECTD_INSTALL_TARGET_CMDS
 	rm -f $(TARGET_DIR)/usr/share/collectd/postgresql_default.conf
 endef
 
+define COLLECTD_INSTALL_INIT_SYSTEMD
+	$(INSTALL) -D -m 644 package/collectd/collectd.service \
+		$(TARGET_DIR)/usr/lib/systemd/system/collectd.service
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+	ln -fs ../../../../usr/lib/systemd/system/collectd.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/collectd.service
+endef
+
 $(eval $(autotools-package))
diff --git a/package/collectd/collectd.service b/package/collectd/collectd.service
new file mode 100644
index 0000000..e203806
--- /dev/null
+++ b/package/collectd/collectd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Statistics collection and monitoring daemon
+After=local-fs.target network.target
+Requires=local-fs.target network.target
+ConditionPathExists=/etc/collectd.conf
+
+[Service]
+Type=notify
+NotifyAccess=main
+EnvironmentFile=-/etc/default/collectd
+ExecStartPre=/usr/sbin/collectd -t
+ExecStart=/usr/sbin/collectd
+Restart=always
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/2] collectd: Fix typo
  2016-02-21 13:09 [Buildroot] [PATCH 1/2] collectd: Fix typo Maxime Hadjinlian
  2016-02-21 13:09 ` [Buildroot] [PATCH 2/2] collectd: Add service file Maxime Hadjinlian
@ 2016-02-21 13:29 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-02-21 13:29 UTC (permalink / raw)
  To: buildroot

Dear Maxime Hadjinlian,

On Sun, 21 Feb 2016 14:09:14 +0100, Maxime Hadjinlian wrote:
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> ---
>  package/collectd/collectd.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Both patches applied to next, thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-21 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 13:09 [Buildroot] [PATCH 1/2] collectd: Fix typo Maxime Hadjinlian
2016-02-21 13:09 ` [Buildroot] [PATCH 2/2] collectd: Add service file Maxime Hadjinlian
2016-02-21 13:29 ` [Buildroot] [PATCH 1/2] collectd: Fix typo Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox