tarcieri (owner)

Revisions

gist: 225551 Download_button fork
public
Public Clone URL: git://gist.github.com/225551.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
    fork do
      Dir.chdir(@path)
      
      # Redirect stdout and stderr to the logfile
      log = File.open(@path/"logs"/"solr.log" , "w+")
      $stdout.reopen(log)
      $stderr.reopen(log)
      
      exec("java -jar start.jar")
    end