Sha256: 5c16d893dcd42b01d435d745a53940ce4ec2221bef688bc3a5791e8b04a912a2

Contents?: true

Size: 958 Bytes

Versions: 4

Compression:

Stored size: 958 Bytes

Contents

#!/usr/bin/env ruby
require 'daemons'
require 'dotenv'
require 'optparse'

`mkdir -p ~/optimus_runner/logs`
`mkdir -p ~/optimus_runner/pids`
options = {
    :app_name           => "optimus-runner",
    :ARGV               => ARGV,
    :dir_mode           => :normal,
    :dir                => "#{File.expand_path('~')}/optimus_runner/pids",
    :multiple           => true,
    :log_output         => true,
    :pid_delimiter      => '.n',
    :backtrace          => true,
    :monitor            => true,
    :log_dir            => "#{File.expand_path('~')}/optimus_runner/logs",
    :logfilename        => 'optimus-runner.log'
}
optparser = OptionParser.new do |parser|
      parser.on('-e=FILE','--env=FILE', "Optimus Cloud Environment file") do |file|
        Dotenv.load(file)
      end
    end
optparser.parse!(ARGV)
Daemons.run(File.join(File.dirname(__FILE__),'optimus_runner_manager'), options)
#Daemons.run('exe/optimus_runner_manager', options)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
optimus-runner-1.1.2 exe/optimus-runner
optimus-runner-1.1.1 exe/optimus-runner
optimus-runner-1.1.0 exe/optimus-runner
optimus-runner-1.0.2 exe/optimus-runner