From: Marc Fournier Date: Tue, 1 Sep 2015 20:01:35 +0000 (+0200) Subject: systemd service file: make sure `collectd -t` succeeds X-Git-Tag: collectd-5.5.0-3~2^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fd43093e8d4309df5e4d0d28c5ee358159d8cd50;p=pkg-collectd.git systemd service file: make sure `collectd -t` succeeds --- 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