Skip to content

Commit

Permalink
Merge pull request #3 from mfournier/more-changes-for-5.5.0-3
Browse files Browse the repository at this point in the history
Fix systemd behavior when the config file is missing.

This was causing problems, for example, when only installing collectd-core which does not provide a config file. The old init script handles this gracefully and so does the service file now.
  • Loading branch information
tokkee committed Sep 12, 2015
2 parents e280f95 + 72f2e99 commit c0ca67a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
16 changes: 12 additions & 4 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
collectd (5.5.0-3) UNRELEASED; urgency=medium

* debian/rules, debian/control:
- Avoid hiding compiler options, allowing the buildd log scanner to do
it's job.
- Avoid hiding compiler options at build time, allowing the buildd log
scanner to do it's job.
- Disable smart plugin on non-linux platforms, due to missing
libatasmart-dev build-dependency.
- Strip out non-deterministic bits out of generated jar files.
* debian/collectd-core.overrides:
- Update 'capitalization-error-in-description' lintian override.

-- Marc Fournier <[email protected]> Tue, 25 Aug 2015 06:55:52 +0200
* 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.
- Check for configuration file validity before starting the daemon.
* debian/control, debian/changelog:
- Update my email address to match identity of current GPG key.

-- Marc Fournier <[email protected]> Tue, 25 Aug 2015 06:55:52 +0200

collectd (5.5.0-2) unstable; urgency=low

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -10,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
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: collectd
Section: utils
Priority: optional
Maintainer: Sebastian Harl <[email protected]>
Uploaders: Marc Fournier <marc[email protected]>
Uploaders: Marc Fournier <marc@bl.uem.li>
Build-Depends: debhelper (>= 7.0.50~), dpkg-dev (>= 1.14.10), po-debconf, dh-systemd (>= 1.5), dh-strip-nondeterminism,
bison, flex, autotools-dev, libltdl-dev, pkg-config,
iptables-dev (>= 1.4.3.2-2) [linux-any],
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ binary-arch: build install-arch
&& rm -f lib/Collectd/Graph/File.pm lib/Collectd/Graph/Filter.pm \
&& rm -f lib/Collectd/Graph/MetaData.pm )
dh_installdebconf -a
dh_systemd_enable -pcollectd-core --name=collectd collectd.service
dh_systemd_enable -pcollectd-core --name=collectd
dh_installinit -pcollectd-core --name=collectd -- defaults 95
dh_systemd_start -pcollectd-core
dh_link -a
Expand Down

0 comments on commit c0ca67a

Please sign in to comment.