Hi Reinhard,

On Fri, Aug 13, 2010 at 05:46:52PM +0200, Reinhard Tartler wrote:
> In the lenny version, this worked just fine and collectd continued to
> work. In squeeze, collectd fails to start with this error message:
> 
> Restarting statistics collection and monitoring daemon:
> collectdconfigfile: stat (/etc/collectd/conf.d/*.conf) failed: No such
> file or directoryconfigfile: stat (/etc/collectd/conf.d/*.conf)
> failed: No such file or directory.

the code in question uses the wordexp(3) function to do a shell-like
pattern expansion. Like the shell, the expansion only takes place if a
file actually matches the pattern, otherwise the argument / pattern is
passed on / returned as is. Unfortunately, as far as I can see, no
indication of this condition is given.

So the described behavior is expected and has been like this since the
feature was introduced in version 4.3 (Lenny features 4.4.2-3). If you
have any idea how I could detect a "pattern not found" condition, please
let me know.

The only idea why the Lenny package behaved differently I can come up
with right now is, if the Lenny package shipped a file matching that
pattern. A quick look at the files in the 4.4.2-3 package doesn't
support this thesis though.

As a work-around I recommend either installing an empty dummy file to
satisfy the pattern or include the directory rather than a "*.conf"
pattern (assuming the directory exists).

Best regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/

Attachment: signature.asc
Description: Digital signature

Reply via email to