From: Marc Fournier Date: Tue, 1 Sep 2015 19:34:33 +0000 (+0200) Subject: systemd service file: check for config file presence. X-Git-Tag: collectd-5.5.0-3~2^2~3 X-Git-Url: https://git.tokkee.org/?p=pkg-collectd.git;a=commitdiff_plain;h=8d89cca00c31e0192ff5689fc9fc3419d1f7676d systemd service file: check for config file presence. Thanks to @bzed for reporting this issue ! --- diff --git a/debian/changelog b/debian/changelog index 81cf056..75d72ae 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ collectd (5.5.0-3) UNRELEASED; urgency=medium * debian/rules, debian/collectd-core.collectd.service: - Rename systemd service file to collectd-core.collectd.service, to honour debhelper's naming convention. + * debian/collectd-core.collectd.service: + - Check for configuration file presence 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 2fee302..7f6f6b3 100644 --- a/debian/collectd-core.collectd.service +++ b/debian/collectd-core.collectd.service @@ -2,6 +2,7 @@ Description=Statistics collection and monitoring daemon After=local-fs.target network.target Requires=local-fs.target network.target +ConditionPathExists=/etc/collectd/collectd.conf Documentation=man:collectd(1) Documentation=man:collectd.conf(5) Documentation=https://collectd.org