I'm looking for something like:
svnserve stop
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.
kill -9 svnserve
the shutdown should be clean. –
Keavy 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.
you can use the command : ps aux | grep svnserve to get the svnserve process ID
then : kill -9 [ID_of_svnserve_process]
A safe way which served me well is simply to use pkill
,
pkill svnserve
I am using this on FreeBSD, Ubuntu and MacOS.
also ps aux | grep -e PID -e svnserve may be useful to show titles.
© 2022 - 2024 — McMap. All rights reserved.