You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Garrick Olson <Ga...@Aceva.com> on 2004/01/16 00:20:12 UTC
How do I gracefully shutdown the svnserve process
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?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How do I gracefully shutdown the svnserve process
Posted by mark benedetto king <mb...@lowlatency.com>.
On Fri, Jan 16, 2004 at 11:59:04AM +0100, Tobias Ringstrom wrote:
> svnserve again. You must be very careful not run recover while a
> repository is being accessed via any other access method.
This is either no longer true, in which case we need to dispel this
practice from the collective conscious, or it is still true, in which
case we need to fix it. I suspect the former.
--ben
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: How do I gracefully shutdown the svnserve process
Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
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