Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I fear that simple service restart may cause data corruption.

Does anyone know if it is safe to simply restart the svnserve Windows service? If not, then how to restart it?

share|improve this question
up vote 1 down vote accepted

Restarting the service is THE way to do it if you want to avoid the risk of corruption. If correctly written the service (any service) should perform any required cleanup prior to terminating. Kill it any other way and you have no assurance of a clean shutdown.

share|improve this answer
Well, my question can be rephrased then like so "Is svnserve correctly written and thus handles the STOP event from the SCM correctly?" – mark Jul 21 '11 at 13:51
@mark, while I can answer that with authority (I'm not one of its programmers, nor have I looked at the source code) I just can't imagine it not being correctly written to handle the various signals sent to services. From the programming perspective, it's so easy to do it correctly that it's quite unusual to see it done incorrectly. – John Gardeniers Jul 21 '11 at 22:03
I think I will take my chances, though we have only our common sense to encourage us. – mark Jul 22 '11 at 19:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.