[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How do I gracefully shutdown the svnserve process

From: Tobias Ringstrom <tobias_at_ringstrom.mine.nu>
Date: 2004-01-16 11:59:04 CET

Garrick Olson wrote:
> I don't see anything in the documentation about how to properly shutdown
> the svnserve process.
>
> Is it always safe to just kill the svnserve process? Might that leave
> things locked or in an inconsistent state?
>
> Is there a way to instruct svnserve to stop processing new requests,
> complete current requests, then gracefully shutdown?

It depends on whether you use threads or forked processes. The default
for Unix is to use fork, and the only option on Windows is to use threads.

Using a forking svnserve, you can safely kill the parent process. Any
child processes will exit when they have served their clients.

There is no safe way to shut down a threaded svnserve yet. Unless you
know that svnserve is not serving any clients when you kill it, you
should run svnadmin recover on your repositories before you start
svnserve again. You must be very careful not run recover while a
repository is being accessed via any other access method.

I recommend running svnadmin recover on all repositories during the boot
process since you cannot know if the repositories were properly closed
or not.

/Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 16 11:59:51 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.