2

I want to set the LANG variable to a default for all daemons started by upstart (init) in Ubuntu-server 14.04.

I've already set it in /etc/default/locale and /etc/environment. Those both affect interactive sessions, but not the daemons and other processes spawned by init/upstart.

3
  • Daemons may disregard any locale set in the environment, and for good reasons.
    – AlexP
    Dec 13, 2016 at 22:32
  • True, however, some daemons may be written expecting to be in a specific encoding types. Not all devs design their daemons as robustly as others. Dec 13, 2016 at 23:00
  • That's why any self respecting daemon will unset any LANG, LANGUAGE or LC_* environment variables and call setlocale (LC_ALL, "C").
    – AlexP
    Dec 13, 2016 at 23:41

0

You must log in to answer this question.

Browse other questions tagged .