You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Felix Natter <fe...@sidact.com> on 2023/04/03 14:29:02 UTC

RE: Re: Disable svn service temporarily

hello Trent,

many thanks for the solution. I already had a svnserve wrapper so this
solution was easily applied.

Best Regards,

Felix


On 2023/03/17 18:43:47 Trent Fisher wrote:
 > On 3/14/2023 8:52 AM, Felix Natter wrote:
 > >
 > > Dear subversion community,
 > >
 > > I have setup an ALMA Linux 8 (~RH8) Server, to which I will migrate 
some
 > > repositories from a Ubuntu 20.04 system. During the migration phase I
 > > would
 > > like to disable the svn (svn+ssh://) service temporarily on the Ubuntu
 > > 20.04
 > > system.
 > >
 > > Is there any easy way to do it? I would like to avoid modifying 
conf/* for
 > > all of the ~100 repositories, making deep changes to the system and
 > > shutting down the ssh service (because I need to pull the dumps to 
the new
 > > system).
 > >
 > > Later, I would also like to have this "maintenance mode" on the target
 > > ALMA8
 > > system.
 > >
 > > Do you have an idea?
 > >
 >
 > You could move the "svnserve" command aside, that would block all
 > svn+ssh access, but that could break a lot of other things, depending on
 > your setup.
 >
 > You could replace it with a shell wrapper which blocks access in certain
 > situations, something like this:
 >
 > if [ "$SSH_CONNECTION" -a -f /etc/BLACKOUT ]; then cat /etc/BLACKOUT;
 > exit 1; fi
 >
 > exec svnserve.real "$@"
 >
 > So if they are coming in from SSH and you have a file called
 > /etc/BLACKOUT that file would be sent to users (downtime notice). You
 > might want to exempt the repository owner, so that any replication or
 > migration efforts still work.
 >
 > note: that script is off the top of my head, poorly written and
 > untested; but it should give you the idea.
 >
 > trent...
 >
 >
 >
-- 

*SIDACT GmbH
Simulation Data Analysis and
Compression Technologies
*
*Felix Natter*
/Software Developer /

Auguststraße 29
53229 Bonn
Germany

Phone 	 :   +49 228 5348 0430
Direct 	 :   +49 228 4097 7118
Email 	 : felix.natter@sidact.com
Web 	 : http://www.sidact.com/