469,133 Members | 1,051 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

How can I force a service to re-read the configuration from disk without restarting

I have a service that can be configured using a simple xml file. When the service starts it reads this xml.
I'd need to change the xml config file while the service is running (no probs so far) and having the service use this new version of the config. This can be done restarting the service or stop/start it. The point is that I cannot face "pauses", I'd need the service always up and running.
So I wonder if there's a way to tell the service to re-red the configuration from the disk instead of using the cached one.
Both command line/tool and C# code would be ok...

Jul 30 '09 #1
1 1989
569 Expert 512MB
Can't you write some code into your service that occasionally checks for a new version of the XML-file. Otherwise, I'm afraid you do need to restart your service.

Aug 11 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Ingo Nolden | last post: by
5 posts views Thread by clintonG | last post: by
reply views Thread by Verticon:: | last post: by
1 post views Thread by John A Grandy | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.