mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2 2/8] collectd: improve systemd service file
@ 2017-04-28 12:56 Clemens Gruber
  0 siblings, 0 replies; only message in thread
From: Clemens Gruber @ 2017-04-28 12:56 UTC (permalink / raw)
  To: ptxdist; +Cc: Clemens Gruber

collectd supports systemd notify. Also add requirements and increase
RestartSec.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
 projectroot/lib/systemd/system/collectd.service | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/projectroot/lib/systemd/system/collectd.service b/projectroot/lib/systemd/system/collectd.service
index 752245c05..e81d031ca 100644
--- a/projectroot/lib/systemd/system/collectd.service
+++ b/projectroot/lib/systemd/system/collectd.service
@@ -1,9 +1,13 @@
 [Unit]
-Description=statistics collection daemon
+Description=Statistics collection and monitoring daemon
+After=network.target
+Requires=network.target
 
 [Service]
-ExecStart=/usr/sbin/collectd -f
+Type=notify
+ExecStart=/usr/sbin/collectd
 Restart=always
+RestartSec=10
 
 [Install]
 WantedBy=multi-user.target
-- 
2.12.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-28 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-28 12:56 [ptxdist] [PATCH v2 2/8] collectd: improve systemd service file Clemens Gruber

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