# HG changeset patch # User Severin Gehwolf # Date 1362143140 -3600 # Node ID 2cf329c9cff99390847906966fa2710bdc743f29 # Parent f84a49f6c7975e86fefa086171be8f9fbf898f2d Make -d option for agent optional. Reviewed-by: omajid Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2013-March/005951.html diff -r f84a49f6c797 -r 2cf329c9cff9 distribution/config/agent.properties --- a/distribution/config/agent.properties Mon Mar 04 17:04:10 2013 -0500 +++ b/distribution/config/agent.properties Fri Mar 01 14:05:40 2013 +0100 @@ -1,4 +1,4 @@ -# indicates if this agent will save its data to the database on exit +# Indicates if this agent will save its data to the database on exit # or rather will purge the db SAVE_ON_EXIT=false @@ -7,3 +7,9 @@ # configured here. # If this is removed or commented out, the default port is 127.0.0.1:12000 CONFIG_LISTEN_ADDRESS=127.0.0.1:12000 + +# Connection URL to storage. This can be overridden with the -d option +# on the command line. In order to use web storage instead, use something +# similar to the following line: +#DB_URL=https://storage-server.example.com:8443/thermostat/storage +DB_URL=mongodb://127.0.0.1:27518 diff -r f84a49f6c797 -r 2cf329c9cff9 distribution/config/commands/agent.properties --- a/distribution/config/commands/agent.properties Mon Mar 04 17:04:10 2013 -0500 +++ b/distribution/config/commands/agent.properties Fri Mar 01 14:05:40 2013 +0100 @@ -21,14 +21,12 @@ description = starts and stops the thermostat agent -usage = agent -d [-u -p ] [-s] [-l ] +usage = agent [-d ] [-u -p ] [-s] [-l ] -options = AUTO_LOG_OPTION, AUTO_DB_OPTIONS, saveOnExit, dbUrl +options = AUTO_LOG_OPTION, AUTO_DB_OPTIONS, saveOnExit saveOnExit.short = s saveOnExit.long = saveOnExit saveOnExit.description = save the data on exit saveOnExit.required = false saveOnExit.hasarg = false - -dbUrl.required = true