summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d70795f)
raw | patch | inline | side by side (parent: d70795f)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 13 Dec 2009 20:33:28 +0000 (21:33 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 13 Dec 2009 21:13:41 +0000 (22:13 +0100) |
Else, installation of "collectd-core" (which does not provide configuration)
would fail.
would fail.
debian/changelog | patch | blob | history | |
debian/collectd-core.collectd.init.d | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 107656d81f620d7adb0f4c4e5e6dbab375fe2e5a..1517bc26c5f199bd862138c66fb9102ce3192969 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
(e.g. providing customizations on top of "collectd-core" without modifying
the "collectd" package) and, amongst others, removes the hard dependency
on librrd (Closes: #495936, #544311).
+ * debian/collectd-core.collectd.init.d:
+ - Do not (try to) start collectd if the config file does not exist. Else,
+ installation of "collectd-core" (which does not provide configuration)
+ would fail.
- -- Sebastian Harl <tokkee@debian.org> Sun, 13 Dec 2009 20:54:52 +0100
+ -- Sebastian Harl <tokkee@debian.org> Sun, 13 Dec 2009 21:30:38 +0100
collectd (4.8.1-2) unstable; urgency=low
index 5e8d29e590394355c44441c245a899ff8f1556d7..d66df6d273b9f04ba3c6fece5ceefd4f8a331846 100755 (executable)
exit 0
fi
+if ! test -e "$CONFIGFILE"; then
+ echo "Not starting $NAME - no configuration ($CONFIGFILE) found."
+ exit 0
+fi
+
if test "$ENABLE_COREFILES" == 1; then
ulimit -c unlimited
fi