diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2017-04-28 14:56:40 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-05-04 10:35:42 +0200 |
commit | 3225261d8cf6a57f6a23171a516a4d5ecd21d745 (patch) | |
tree | 7dd795c63453f9831bcacc478ffbc93a702195c3 /projectroot | |
parent | 68c1f2642ed30e1cb6dd8085384e17166fff8f74 (diff) | |
download | ptxdist-3225261d8cf6a57f6a23171a516a4d5ecd21d745.tar.gz ptxdist-3225261d8cf6a57f6a23171a516a4d5ecd21d745.tar.xz |
collectd: improve systemd service file
collectd supports systemd notify. Also add requirements and increase
RestartSec.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r-- | projectroot/usr/lib/systemd/system/collectd.service | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/projectroot/usr/lib/systemd/system/collectd.service b/projectroot/usr/lib/systemd/system/collectd.service index 752245c05..e81d031ca 100644 --- a/projectroot/usr/lib/systemd/system/collectd.service +++ b/projectroot/usr/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 |