To have a reproducible daemon, the daemons started by start-stop-daemon should have cleaned environment, for example the language environments LANG and LC_*. Not doing so ends in strange behaviour of the daemons depending which admin with different personal language settings started it. Namely that is: - LC_* - LANG* - *LOCALE - evtl. LD_LIBRARY_PATH - TZ - ... Some of the environments get used by sshd from the client machine if one logs in by ssh. The best would be to have a fully controlled environment for daemons. But this would be a big step.
Hi! I see the problem and I agree that something should be done about it, but as I mentioned in [0], I don't think the right place to plug a global distribution environment policy is s-s-d, because using it is not required by the debian-policy and as such some daemons might not be using it to start. <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631081#58> Adding support for some kind of controls on the process environment to s-s-d might make sense, but not in the way you present here. Thanks, Guillem
Moin, Am Mo den 19. Aug 2013 um 11:52 schrieb Guillem Jover: Where is that [0]? It might not be but it could be a good place for it. Is this the [0]? Well, it is just a first Idea to get around such bugs. I have no solutions at the moment. For my company I created a job scheduler in perl that is cleaning up the environment and taking full control over it. This might be no good idea for s-s-d, but somewhat in between ... Regards Klaus