<snip> case $(sed 's/#.*//' /etc/syslog-ng/syslog-ng.conf) in *source*tcp*|*source*udp*|*destination*tcp*|*destination*udp*) need net ;; esac </snip> No go; baselayout compares the mtime of the deptree with /etc/{conf,init}.d, not with in any other files outside those.
patches welcome.
(In reply to comment #1) > patches welcome. Well, the patch is pretty trivial, set REMOTE_LOGGING=[yes|no] or whatever similar in /etc/conf.d/syslog.ng and use this value in initscript for dependencies. It can't use any dynamic content in files that baselayout doesn't care about.
baselayout-2.0.0_rc3 will allow the following depend() { config /etc/fstab } Which means it will update the dependency tree if the mtime of fstab is newer than the mtime of the deptree. So when baselayout-2 is stable, whack that in the init script.
How does the mtime of /etc/fstab relate to this bug? This smells like a dirty hack.
(In reply to comment #4) > How does the mtime of /etc/fstab relate to this bug? This smells like a dirty > hack. Should be config /etc/syslog-ng/syslog-ng.conf here. Uberlord was referring to /etc/init.d/netmount, which has the same problem.
What does the mtime of /etc/syslog-ng/syslog-ng.conf have to do with the deps for the service?
(In reply to comment #6) > What does the mtime of /etc/syslog-ng/syslog-ng.conf have to do with the deps > for the service? Already described once in Comment #0; baselayout won't update the dependencies if you edit etc/syslog-ng/syslog-ng.conf, so your case $(sed ...) fu in depend() won't work ATM - simply because baselayout doesn't check the mtime anywhere but in /etc/{conf,init}.d
Kludge in CVS for baselayout-1 and baselayout-2 support suggested by uberlord.