From e701be030f76296138be45a7a1890455dd9faa5b Mon Sep 17 00:00:00 2001 From: Peter Lemenkov <lemenkov@gmail.com> Date: Mon, 7 Jun 2010 15:08:42 +0400 Subject: [PATCH 08/12] Remove pid-file after stop --- bin/couchdb.tpl.in | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index ced524c..4e21c3f 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -253,10 +253,8 @@ EOF stop_couchdb () { PID=`_get_pid` + rm -f $PID_FILE if test -n "$PID"; then - if test "$1" = "false"; then - echo > $PID_FILE - fi if kill -0 $PID 2> /dev/null; then if kill -1 $PID 2> /dev/null; then if test "$1" = "false"; then -- 1.7.2.1