Discussion:
How to Shutdown Svn Server
Mga Kar
2018-10-03 02:21:03 UTC
Permalink
I am trying to look for documents but haven’t found any relevant and not feeling confident on solutions here and there.

I wanted a concrete solution documented in the subversion website to give notes on how to shutdown svn server.

We are migrating the project to Bitbucket hence we need to stop anyone from pushing or committing to subversion.

Also We are using ansible,so if there is a direct way in subversion is also helpful or else if we need to write a playbook to shutdown servers that will also be helpful.

Eagerly waiting for response.


Regards
Megha K

Sent from Mail for Windows 10
Mark Phippard
2018-10-03 14:14:59 UTC
Permalink
Post by Mga Kar
I am trying to look for documents but haven’t found any relevant and not
feeling confident on solutions here and there.
I wanted a concrete solution documented in the subversion website to give
notes on how to shutdown svn server.
We are migrating the project to Bitbucket hence we need to stop anyone
from pushing or committing to subversion.
Also We are using ansible,so if there is a direct way in subversion is
also helpful or else if we need to write a playbook to shutdown servers
that will also be helpful.
Eagerly waiting for response.
It depends on your OS and what server you are using. If you are using
Apache you stop Apache (service httpd stop), if svnserve then you stop that
(service svnserve stop). It really depends on how you installed it.

It is also pretty easy to leave a server running but make the repositories
all read-only:

https://stackoverflow.com/questions/2411122/how-to-freeze-entire-svn-repository-to-make-it-read-only

You can either alter the authz rules to remove all write permissions or
just add a start-commit hook that does an exit 1.
--
Thanks

Mark Phippard
http://markphip.blogspot.com/
Daniel Shahaf
2018-10-03 15:17:50 UTC
Permalink
Post by Mark Phippard
You can either alter the authz rules to remove all write permissions or
just add a start-commit hook that does an exit 1.
Additionally, if a pre-revprop-change hook exists then it should either
be deleted or be made to exit with a non-zero exit code.

Loading...