xref: /5.5.2/couchdb/bin/couchdb.bat.tpl.in (revision 1dc0804d)
1@echo off
2rem Licensed under the Apache License, Version 2.0 (the "License"); you may not
3rem use this file except in compliance with the License. You may obtain a copy
4rem of the License at
5rem
6rem   http://www.apache.org/licenses/LICENSE-2.0
7rem
8rem Unless required by applicable law or agreed to in writing, software
9rem distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10rem WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11rem License for the specific language governing permissions and limitations
12rem under the License.
13
14setlocal
15rem First change to the drive with the erlang bin directory
16%~d0
17rem then change to the erlang bin directory
18cd %~dp0
19
20rem Allow a different erlang executable (eg, erl) to be used.
21rem When using erl instead of werl, server restarts during test runs can fail
22rem intermittently. But using erl should be fine for production use.
23if "%ERL%x" == "x" set ERL=werl.exe
24
25echo CouchDB %version% - prepare to relax...
26%ERL% -sasl errlog_type error -s couch
27