diff options
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | bin/couchdb.tpl.in | 6 | ||||
-rw-r--r-- | etc/init/couchdb.tpl.in | 8 |
3 files changed, 8 insertions, 7 deletions
@@ -27,5 +27,6 @@ Some of these people are: * Jason Davies <jason@jasondavies.com> * Maximillian Dornseif <md@hudora.de> * Eric Casteleijn <eric.casteleijn@canonical.com> + * Maarten Thibaut <mthibaut@cisco.com> For a list of authors see the `AUTHORS` file. diff --git a/bin/couchdb.tpl.in b/bin/couchdb.tpl.in index 33761080..cfa7e575 100644 --- a/bin/couchdb.tpl.in +++ b/bin/couchdb.tpl.in @@ -140,15 +140,15 @@ check_environment () { exit $SCRIPT_ERROR fi message_prefix="Apache CouchDB needs a regular" - if ! echo 2> /dev/null >> $PID_FILE; then + if `echo 2> /dev/null >> $PID_FILE; echo $?` -gt 0; then echo "$message_prefix PID file: $PID_FILE" >&2 exit $SCRIPT_ERROR fi - if ! echo 2> /dev/null >> $STDOUT_FILE; then + if `echo 2> /dev/null >> $STDOUT_FILE; echo $?` -gt 0; then echo "$message_prefix STDOUT file: $STDOUT_FILE" >&2 exit $SCRIPT_ERROR fi - if ! echo 2> /dev/null >> $STDERR_FILE; then + if `echo 2> /dev/null >> $STDERR_FILE; echo $?` -gt 0; then echo "$message_prefix STDERR file: $STDERR_FILE" >&2 exit $SCRIPT_ERROR fi diff --git a/etc/init/couchdb.tpl.in b/etc/init/couchdb.tpl.in index abfb4af6..c8e4ae33 100644 --- a/etc/init/couchdb.tpl.in +++ b/etc/init/couchdb.tpl.in @@ -27,7 +27,7 @@ SCRIPT_ERROR=1 DESCRIPTION="database server" NAME=couchdb -SCRIPT_NAME=$(basename $0) +SCRIPT_NAME=`basename $0` COUCHDB=%bindir%/%couchdb_command_name% CONFIGURATION_FILE=%sysconfdir%/default/couchdb LSB_LIBRARY=/lib/lsb/init-functions @@ -63,9 +63,9 @@ start_couchdb () { # Start Apache CouchDB as a background process. command="$COUCHDB -b" - if test -n "$COUCHDB_PID_FILE"; then - command="$command -p $COUCHDB_PID_FILE" - fi + if test -n "$COUCHDB_PID_FILE"; then + command="$command -p $COUCHDB_PID_FILE" + fi if test -n "$COUCHDB_STDOUT_FILE"; then command="$command -o $COUCHDB_STDOUT_FILE" fi |