Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.