summaryrefslogtreecommitdiff
path: root/startYACY.bat
diff options
context:
space:
mode:
authorreger <reger18@arcor.de>2014-02-24 05:16:31 +0100
committerreger <reger18@arcor.de>2014-02-24 05:16:31 +0100
commita9b06f87190fc9f94a7a2dbafc32c30766062f24 (patch)
tree6524e0831aebf413fcb693da66a7f7f88f6a9d72 /startYACY.bat
parentedc8e1c4ded0cd7bc1f56c0642f80464500c9c13 (diff)
add a -config command line parameter e.g. -config "port=9090" "port.ssl=8043"
- useful for remote installation to set any config file property - multipe parameter can be set at once, on Windows enclose parameter in doublequotes - special handling "adminAccount=adminuser:adminpwd" sets adminusername and md5 encoded admin-pwd - adjusted windows startbatch to allow command line parameter handling - remove not needed classpath calculation from startYACY_debug.bat
Diffstat (limited to 'startYACY.bat')
-rw-r--r--startYACY.bat7
1 files changed, 6 insertions, 1 deletions
diff --git a/startYACY.bat b/startYACY.bat
index a70f48416..205b6b1f5 100644
--- a/startYACY.bat
+++ b/startYACY.bat
@@ -30,7 +30,12 @@ Echo.
Echo You can download Java at http://java.com/
Echo.
Echo ***************************************************************************
-start %priority% javaw %javacmd% -classpath %CLASSPATH% net.yacy.yacy
+Rem commandline parameter added for -config option, like -config "port=8090" "adminAccount=admin:password"
+Rem special parameter "adminAccount=admin:password" calculates and sets new admin-pwd
+Rem any parameter in yacy.conf can me modified this way (make sure to use correct upper/lower case)
+
+start %priority% javaw %javacmd% -classpath %CLASSPATH% net.yacy.yacy %1 %2 %3 %4 %5 %6 %7 %8 %9
+
Echo You can close the console safely now.
GoTo :END