LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2012, 10:33 AM   #1
fazorboy
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Rep: Reputation: Disabled
How to change system locale without reboot


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.
 
Old 08-02-2012, 11:53 AM   #2
dmdeb
Member
 
Registered: Jul 2007
Location: Germany
Distribution: Debian
Posts: 45

Rep: Reputation: 6
Quote:
Originally Posted by fazorboy View Post
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.
Hi fazorboy,

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?

Regards
dmdeb
 
Old 08-03-2012, 04:05 AM   #3
fazorboy
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks

thanks for reply, here use case is that user should be able to change locale of our application which intern should change locale over system, i am ready to start each process which are dependent on this change. as customer will not have access to system shell( they cant reboot system, as its a appliance kind of black box) we wanted a way to make this change affect without system reboot.

i read that if you restart init then this may happen, i have no idea whats that mean.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
How to change system wide locale? Tux-Slack Slackware 1 07-09-2007 07:34 AM
how to change the system date during shutdown or reboot. ph2932 Linux - General 2 05-20-2007 02:19 PM
C locale and system locale johnnydangerous Fedora 4 04-11-2005 03:37 PM
Change locale for an application? codec Linux - General 0 04-18-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration