    # File lib/chef/solr/application/solr.rb, line 203
            def run_application
              if Chef::Config[:daemonize]
                Chef::Daemon.daemonize("chef-solr")
              end

              Dir.chdir(Chef::Config[:solr_jetty_path]) do
                command = "java -Xmx#{Chef::Config[:solr_heap_size]} -Xms#{Chef::Config[:solr_heap_size]}"
                command << " -Dsolr.data.dir=#{Chef::Config[:solr_data_path]}"
                command << " -Dsolr.solr.home=#{Chef::Config[:solr_home_path]}"
                command << " #{Chef::Config[:solr_java_opts]}" if Chef::Config[:solr_java_opts]
                command << " -jar #{File.join(Chef::Config[:solr_jetty_path], 'start.jar')}"
                Chef::Log.info("Starting Solr with #{command}")

                # Opened earlier before we dropped privileges
                if @logfile
                  # Don't need it anymore
                  Chef::Log.close

                  STDOUT.reopen(@logfile)
                  STDERR.reopen(@logfile)
                end

                Kernel.exec(command)

              end
            end