Nathan Vander Wilt created COUCHDB-1884:
-------------------------------------------
Summary: `couchdb -d` no longer shuts down a respawning server
Key: COUCHDB-1884
URL: https://issues.apache.org/jira/browse/COUCHDB-1884
Project: CouchDB
Issue Type: Bug
Reporter: Nathan Vander Wilt
It looks like the patch for #1449
(https://github.com/apache/couchdb/commit/15c1a97e42c5bafad6f5fa83d753d3a7cf64d6d7)
disabled the logic that prevented respawn when -d is used instead of -k.
Before:
1. when -d is passed, $KILL passed to stop_couchdb would be false and so the
`"$1" = "false` test would clear the PID file before killing
2. Then when start_couch's loop around `export HEART_COMMAND` saw an empty PID
file, it would stop respawning
After 15c1a97e:
1. The only logic stop_couchdb has for `"$KILL" = "false"` is a different log
message
2. When start_couch's respawn loop sees the process return, it always respawns
it (assuming -r)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira