Sunday, April 16, 2006

How to stop Subversion while it's running in daemon mode

I start Subversion on Fedora Core 5 by using "svnserve -d -r /path/to/repos", it works fine. But how to stop it, maybe when I typed a wrong path?

Follows these steps:

+ At terminal console, type "ps auxww | fgrep svnserve" (without quotes) then Enter
+ You will see something like this:

t800t8 3072 0.0 0.0 9472 872 ? Ss 22:25 0:00
svnserve -d -r ~Works/SVN/repos
t800t8 3421 0.0 0.0 3884 556 pts/2 S+ 22:50 0:00
fgrep svnserve

You will have the process id to kill (in this situation, 3072)
+ Kill Subversion by: kill <process id>

In the worst case, try to use: kill -9 <process id>

2 comments:

Khánh Lê said...

Anh Tuấn biết cách nào chạy Subversion daemon như là 1 service trong Linux không?

t800t8 said...

Hiện giờ mình toàn xài Apache để làm việc với Subversion thôi. Mình cũng chưa có nhiều kinh nghiệm với Linux.