~jderose/ubuntu/utopic/couchdb/1.6.0

« back to all changes in this revision

Viewing changes to etc/init/couchdb.tpl.in

  • Committer: Steve Langasek
  • Date: 2012-07-31 00:43:44 UTC
  • mfrom: (7.1.14 sid)
  • Revision ID: steve.langasek@canonical.com-20120731004344-7mbqcmooev3pleac
Merge 1.2.0-2 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    # Start Apache CouchDB as a background process.
85
85
 
86
86
    mkdir -p "$RUN_DIR"
 
87
    chown -R "$COUCHDB_USER" "$RUN_DIR"
87
88
    command="$COUCHDB -b"
88
89
    if test -n "$COUCHDB_STDOUT_FILE"; then
89
90
        command="$command -o $COUCHDB_STDOUT_FILE"
129
130
                log_end_msg $SCRIPT_ERROR
130
131
            fi
131
132
            ;;
132
 
        restart)
 
133
        restart|force-reload)
133
134
            log_daemon_msg "Restarting $DESCRIPTION" $NAME
134
135
            if stop_couchdb; then
135
136
                if start_couchdb; then
146
147
            ;;
147
148
        *)
148
149
            cat << EOF >&2
149
 
Usage: $SCRIPT_NAME {start|stop|restart|status}
 
150
Usage: $SCRIPT_NAME {start|stop|restart|force-reload|status}
150
151
EOF
151
152
            exit $SCRIPT_ERROR
152
153
            ;;