lib/taskjuggler/apps/Tj3Daemon.rb in taskjuggler-3.5.0 vs lib/taskjuggler/apps/Tj3Daemon.rb in taskjuggler-3.6.0

- old
+ new

@@ -1,12 +1,12 @@ #!/usr/bin/env ruby -w # encoding: UTF-8 # # = Tj3Daemon.rb -- The TaskJuggler III Project Management Software # -# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 -# by Chris Schlaeger <chris@linux.com> +# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 +# by Chris Schlaeger <cs@taskjuggler.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # @@ -55,10 +55,14 @@ @opts.on('-p', '--port <NUMBER>', Integer, format('Use the specified TCP/IP port to serve tj3client ' + 'requests (Default: 8474).')) do |arg| @port = arg end - @opts.on('--urifile', String, + @opts.on('--logfile <FILE NAME>', String, + format('Log daemon messages to the specified file.')) do |arg| + @mhi.logFile = arg + end + @opts.on('--urifile <FILE NAME>', String, format('If the port is 0, use this file to store the URI ' + 'of the server.')) do |arg| @uriFile = arg end @opts.on('-w', '--webserver',