Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a graceful way to stop svnserve -d

Tags:

svn

svnserve

I'm looking for something like:

svnserve stop
like image 709
chickeninabiscuit Avatar asked Dec 02 '08 03:12

chickeninabiscuit


3 Answers

The recommended way is to do it is by using the kill command which will allow subversion to shut down properly. I don't think there is any better way to do it.

like image 150
Robert Gamble Avatar answered Nov 07 '22 18:11

Robert Gamble


You can use the start-stop-daemon program to do it :

/sbin/start-stop-daemon --stop --exec /usr/bin/svnserve

To start it :

 /sbin/start-stop-daemon --start --chuid svn:svn --exec /usr/bin/svnserve -- -d -r /var/svn

Of course you can adapt user and group (svn:svn), and the SVN root path (/var/svn)

These scripts are part of another one located in /etc/init.d/svnserve that I use on all my SVN servers to manage the daemon. See this Ubuntu doc for more explanations.

like image 41
JoDev Avatar answered Nov 07 '22 19:11

JoDev


you can use the command : ps aux | grep svnserve to get the svnserve process ID
then : kill -9 [ID_of_svnserve_process]

like image 5
elhaj Avatar answered Nov 07 '22 18:11

elhaj