1
0
Fork 0

updated Windows batch files

This commit is contained in:
Jan Steemann 2013-10-09 17:17:29 +02:00
parent a3b35c613c
commit 17c2c1a3da
14 changed files with 195 additions and 346 deletions

46
VS2012/Installer/arangod.bat Executable file
View File

@ -0,0 +1,46 @@
@echo off
:: #################################################################
:: # script to start the ArangoDB server in Windows
:: #################################################################
cls
break=off
setlocal enableextensions
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise ArangoDB will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other ArangoDB server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
arangod.exe -c arangod.conf %*
:END

23
VS2012/Installer/arangod.conf Executable file
View File

@ -0,0 +1,23 @@
[server]
endpoint = tcp://127.0.0.1:8529
disable-authentication = true
threads = 4
[database]
# the default size is 32M change this if required - especially in the 32 bit version
# maximal-journal-size 1048576
[javascript]
action-directory = .\js\actions
modules-path = .\js\server\modules;.\js\common\modules;.\js\node
app-path = .\js\apps
package-path = .\js\npm
startup-directory = .\js
[scheduler]
threads = 4
[log]
level = info
severity = human

7
VS2012/Installer/arangoimp.bat Executable file
View File

@ -0,0 +1,7 @@
@echo off
:: #################################################################
:: # script to start the ArangoDB shell in Windows
:: #################################################################
setlocal enableextensions
arangosh.exe -c arangosh.conf %*

View File

@ -0,0 +1,3 @@
[server]
endpoint = tcp://127.0.0.1:8529
disable-authentication = true

7
VS2012/Installer/arangosh.bat Executable file
View File

@ -0,0 +1,7 @@
@echo off
:: #################################################################
:: # script to start the ArangoDB shell in Windows
:: #################################################################
setlocal enableextensions
arangosh.exe -c arangosh.conf %*

View File

@ -0,0 +1,10 @@
pretty-print = true
[server]
endpoint = tcp://127.0.0.1:8529
disable-authentication = true
[javascript]
startup-directory = .\js
modules-path = .\js\client\modules;.\js\common\modules;.\js\node
package-path = .\js\npm

46
VS2012/Installer/console.bat Executable file
View File

@ -0,0 +1,46 @@
@echo off
:: #################################################################
:: # script to start the ArangoDB server in Windows
:: #################################################################
cls
break=off
setlocal enableextensions
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise ArangoDB will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other ArangoDB server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
arangod.exe -c arangod.conf --console %*
:END

View File

@ -1,89 +0,0 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions"
SET GC=20
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M. change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
SET CMD=%CMD% --console
SET CMD=%CMD% %*
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
:END

View File

@ -0,0 +1,7 @@
@echo off
:: #################################################################
:: # script to start the foxx manager in Windows
:: #################################################################
setlocal enableextensions
arangosh.exe -c arangosh.conf --javascript.execute-string "require('org/arangodb/foxx/manager').run(ARGUMENTS);" %*

View File

@ -1,41 +0,0 @@
@echo off
:: #################################################################
:: # script to start the foxx manager in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET STARTUP_MOD=".\js\client\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET PACKAGE_PATH=".\js\npm"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: # If you wish to start the shell without a connection to an
:: # server, please change the the command
:: # SET CMD=%CMD% --server.endpoint %HTTP_PORT%
:: # to
:: # SET CMD=%CMD% --server.endpoint none
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --javascript.execute-string "require(\"org/arangodb/foxx/manager\").run(ARGUMENTS);"
SET CMD=%CMD% %*
echo starting arangosh.exe
echo with %CMD%
arangosh.exe %CMD%

View File

@ -1,87 +0,0 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions"
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
SET CMD=%CMD% %*
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
:END

View File

@ -1,40 +0,0 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET STARTUP_MOD=".\js\client\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET PACKAGE_PATH=".\js\npm"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: # If you wish to start the shell without a connection to an
:: # server, please change the the command
:: # SET CMD=%CMD% --server.endpoint %HTTP_PORT%
:: # to
:: # SET CMD=%CMD% --server.endpoint none
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% %*
echo starting arangosh.exe
echo with %CMD%
arangosh.exe %CMD%

46
VS2012/Installer/upgrade.bat Executable file
View File

@ -0,0 +1,46 @@
@echo off
:: #################################################################
:: # script to upgrade the ArangoDB server in Windows
:: #################################################################
cls
break=off
setlocal enableextensions
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise ArangoDB will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other ArangoDB server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
arangod.exe -c arangod.conf --console --upgrade %*
:END

View File

@ -1,89 +0,0 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions"
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\LOCK" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\LOCK > NUL
if EXIST ".\data\LOCK" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
SET CMD=%CMD% --console
SET CMD=%CMD% --upgrade
SET CMD=%CMD% %*
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
:END