diff options
| author | dileepbapat <dileepbapat@gmail.com> | 2013-05-14 18:08:08 +0530 |
|---|---|---|
| committer | Dave Cottlehuber <dch@apache.org> | 2013-12-03 20:35:19 +0100 |
| commit | f75b8ab53a1868ad2c87a314059226efab018ded (patch) | |
| tree | 1b134cc520d294dc5b38cac470c365a67f28cda2 /bin | |
| parent | 862d8ae43ff1f44e910669031945b40c6073a01a (diff) | |
| download | couchdb-f75b8ab53a1868ad2c87a314059226efab018ded.tar.gz | |
taking changes from 1.2 to stop service
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/couchdb.tpl.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index 6ebacf458..538ebcbce 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -304,6 +304,10 @@ stop_couchdb () { PID=`_get_pid` STOP_TIMEOUT=60 if test -n "$PID"; then + if test "$1" = "false"; then + echo > $PID_FILE + fi + if kill -0 $PID 2> /dev/null; then if kill -TERM $PID 2> /dev/null; then count=0 |
