Hello
I'm trying set NLS_LANG for Enviroment in Centos 7. I use this command: systemctl set-environment NLS_LANG = 'CZECH_CZECH REPUBLIC.UTF8'
It works but after the reboot system this settings is gone. How can I configure this permanently?
Thank you
Systemd Environment NLS LANG
Re: Systemd Environment NLS LANG
Add it to "DefaultEnvironment=" in the file /etc/systemd/system.conf
See:
See:
Code: Select all
man systemd-system.conf
-
- Posts: 3
- Joined: 2018/01/22 14:01:49
Re: Systemd Environment NLS LANG
OK I tryed add this into /etc/systemd/system.conf
DefaultEnvironment=NLS_LANG = 'CZECH_CZECH REPUBLIC.UTF8'
Nothing happened.
So I solved problem that I put systemctl command into startup scrypt: /etc/rc.d/rc.local and it works.
DefaultEnvironment=NLS_LANG = 'CZECH_CZECH REPUBLIC.UTF8'
Nothing happened.
So I solved problem that I put systemctl command into startup scrypt: /etc/rc.d/rc.local and it works.
Re: Systemd Environment NLS LANG
According to man systemd-system.conf, the syntax is:
You appear to have the quotes in different positions.
Code: Select all
DefaultEnvironment="VAR1=word1 word2" VAR2=word3 "VAR3=word 5 6"
-
- Posts: 3
- Joined: 2018/01/22 14:01:49
Re: Systemd Environment NLS LANG
Thank you. My Fault.
I added correctly DefaultEnvironment="NLS_LANG='CZECH_CZECH REPUBLIC.UTF8'"
Now it works
I added correctly DefaultEnvironment="NLS_LANG='CZECH_CZECH REPUBLIC.UTF8'"
Now it works