Originally Posted by fazorboy
Hi all, I have searched this on google but got nothing appropriate.
is there a way to change system locale without rebooting system?
our requirement is we need to change locale and our web server(jetty) and other system processes should pick up new changed locale without reboot.
when i searched every where they talk about rebooting system.
i tried changing
/etc/sysconfig/i18n, /root/bash_profile, export LANG but all need system reboot if we want every process to pick up new changed locale. or am i missing something here? please advice.
I don't think you can change the locale in a hot-plug fashion. This would require every shell and every process to constantly watch your system-wide settings and to reevaluate them upon change. Programs that depend on the locale simply aren't written that way.
What's the use case behind that, anyway? Why do you need to change the locale for a webserver in an ad-hoc way?