Skip to content

Commit

Permalink
Define LANG for services.
Browse files Browse the repository at this point in the history
Addressing
[Wed Dec 02 18:23:52.660927 2015] [wsgi:error] [pid 2871] ipa: INFO: *** PROCESS START ***
[Wed Dec 02 18:23:55.158683 2015] [wsgi:error] [pid 2870] ipa: ERROR: WSGI jsonserver_kerb.__call__():
[Wed Dec 02 18:23:55.158710 2015] [wsgi:error] [pid 2870] Traceback (most recent call last):
[Wed Dec 02 18:23:55.158714 2015] [wsgi:error] [pid 2870]   File "/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 403, in __call__
[Wed Dec 02 18:23:55.158717 2015] [wsgi:error] [pid 2870]     response = self.wsgi_execute(environ)
[Wed Dec 02 18:23:55.158720 2015] [wsgi:error] [pid 2870]   File "/lib/python2.7/site-packages/ipaserver/rpcserver.py", line 314, in wsgi_execute
[Wed Dec 02 18:23:55.158723 2015] [wsgi:error] [pid 2870]     lang = os.environ['LANG']
[Wed Dec 02 18:23:55.158726 2015] [wsgi:error] [pid 2870]   File "/lib64/python2.7/UserDict.py", line 23, in __getitem__
[Wed Dec 02 18:23:55.158729 2015] [wsgi:error] [pid 2870]     raise KeyError(key)
[Wed Dec 02 18:23:55.158731 2015] [wsgi:error] [pid 2870] KeyError: 'LANG'
  • Loading branch information
adelton committed Dec 4, 2015
1 parent 33d99d5 commit 9c152e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions systemctl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if (@ARGV == 2 and $ARGV[0] eq '--system' and $ARGV[1] eq 'daemon-reload') {
for (keys %ENV) {
delete $ENV{$_} unless $_ =~ /^_SYSTEMCTL_LITE/;
}
$ENV{LANG} = 'C';

my $RUNNING_DIR = '/run/systemctl-lite-running';
if (not -d $RUNNING_DIR) {
Expand Down

0 comments on commit 9c152e4

Please sign in to comment.