From fd43093e8d4309df5e4d0d28c5ee358159d8cd50 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 1 Sep 2015 22:01:35 +0200 Subject: [PATCH] systemd service file: make sure `collectd -t` succeeds --- debian/changelog | 1 + debian/collectd-core.collectd.service | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/changelog b/debian/changelog index 75d72ae..5d4df14 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,7 @@ collectd (5.5.0-3) UNRELEASED; urgency=medium debhelper's naming convention. * debian/collectd-core.collectd.service: - Check for configuration file presence before starting the daemon. + - Check for configuration file validity before starting the daemon. -- Marc Fournier Tue, 25 Aug 2015 06:55:52 +0200 diff --git a/debian/collectd-core.collectd.service b/debian/collectd-core.collectd.service index 7f6f6b3..e179f76 100644 --- a/debian/collectd-core.collectd.service +++ b/debian/collectd-core.collectd.service @@ -11,6 +11,7 @@ Documentation=https://collectd.org Type=notify NotifyAccess=main EnvironmentFile=-/etc/default/collectd +ExecStartPre=/usr/sbin/collectd -t ExecStart=/usr/sbin/collectd Restart=always RestartSec=10 -- 2.30.2