http://bugzilla.suse.com/show_bug.cgi?id=956558
http://bugzilla.suse.com/show_bug.cgi?id=956558#c22
Thomas Blume
(In reply to Thomas Blume from comment #18)
At which level would a failing init script dependency have been loggged?
Does sysvinit have the possibility of optional dependencies? i.g. "start it if possible, but don't bother if it isn't".
Ok, maybe not for dependencies in init scripts, but I think this is the case for optional mounts from fstab. In sysvinit, der system boot is continued but the failing mount is AFAIK displayed as a warning. In systemd, the same behaviour is achieved by adding the 'nofail' mount option to a mount entry. This creates a Wants dependencies to the mount target (usually local-fs.target) instead of a Requires, so that the target doesn't fail if the mount fails. Still, the failing mount (e.g. the unsatisfied Wants dependency) should be loggged as a warning. I'm afraid this won't show up anymore If we decrease the log priority for Wants. This is only one example, there might be others for other targets.
However, there is no need to change the code for suppressing warnings. You can configure systemd journald to only store messages starting from a certain log level.
That would suppress all warnings
Well ok, this is probably too excessive. On the other hand, if we decrease the log level of Wants, it would suppress all warnings for Wants dependencies. As stated above, this would also affect warning of missing Wants dependencies in targets. I'm a bit reluctant to do this only because of problems with a service. Rethinking it, I guess there is a better solution. Instead of creating a Wants dependency in the nfs service files, you could use a WantedBy dependency to the nfs services in the gss service files. Advantage is that the nfs service files wouldn't complain if the gss service files aren't installed, but the Wants dependency would still be applied when the gss packages gets installed and enabled. Would this be an option for you? -- You are receiving this mail because: You are on the CC list for the bug.